Thursday, March 13, 2014

March 13th - Implement login/logout system

Team members involved: Eric Oltean, Michael Del Fante

One requirement that our refrigerator monitoring dashboard needs to fulfill is to allow the users and administrators to log into the dashboard. Administrators will be able to create new folders and refrigerators, while other users will only be able to monitor the refrigerators. We implemented the login page using Flask Security, which is a Flask extension that adds security mechanisms to our application. Flask Security makes it easy to take care of salt-encrypting the passwords, storing sessions, and redirecting the user if he lands on a page that requires the user to be logged in. Flask integrates well with SQLAlchemy, the Flask database extension, so the username and passwords are stored securely in our SQLite database.

The login/logout page currently includes a brief introduction to Ombitron, but we are going to change it to include a brief introduction to the dashboard itself instead. Users have the option to either log in or register. After registering and/or logging in, the user is redirected to the folder overview page. The screenshot below shows what the login/logout page looks like.


No comments:

Post a Comment