kailo_beewell_dashboard.authentication
Helper functions for user authentication
Module Contents
Functions
|
Finds the school based on the username |
Checks whether a password entered by the user is correct |
|
|
Produces message that is displayed on the login screen. |
|
Function that returns 'True' if the user has entered the correct password |
Attributes
- kailo_beewell_dashboard.authentication.application
- kailo_beewell_dashboard.authentication.get_school(username)
Finds the school based on the username
Parameters
- usernamestring
Django username
- kailo_beewell_dashboard.authentication.password_entered()
Checks whether a password entered by the user is correct
- kailo_beewell_dashboard.authentication.login_screen(survey_type)
Produces message that is displayed on the login screen.
Parameters
- survey_typestring
Specifies whether this is for the ‘standard’ or ‘symbol’ survey.
- kailo_beewell_dashboard.authentication.check_password(survey_type)
Function that returns ‘True’ if the user has entered the correct password Stores the user to the session state, and finds the school’s full name, and adds that to the session state as well.
Parameters
- survey_typestring
Specifies whether this is for the ‘standard’ or ‘symbol’ survey.