Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body If CompareNotEq AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call NameLoad Str Return Call NameLoad Call NameLoad Str Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str NameLoad FunctionDef arguments args defaults body If CompareNotEq AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call NameLoad Str Return Call NameLoad Call NameLoad Str Assign NameStore Call NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call NameLoad Str keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Return Call NameLoad Str keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str NameLoad FunctionDef arguments args defaults body If UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call NameLoad Str Return Call NameLoad Call NameLoad Str Assign NameStore Call NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad keyword Str Return Call NameLoad Call NameLoad Str Return Call NameLoad Str keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str FunctionDef arguments args defaults body Assign NameStore Call NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad Expr Call NameLoad Str keyword Str Return Call NameLoad BoolOpOr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str orelse Expr Call NameLoad NameLoad Return Call NameLoad Str keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr If CompareIs NameLoad NameLoad body Return Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Return Str Return NameLoad decorator_list FunctionDef arguments args defaults body If CompareNotIn Str AttributeLoad NameLoad attr body Expr Call NameLoad Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr ListLoad Str Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Dict Str Str SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Print Str Expr Call NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr If CompareEq Call AttributeLoad NameLoad attr Str Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad NameLoad Return Call NameLoad Dict Str Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse Expr Call NameLoad Num decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str FunctionDef arguments args defaults body Expr Call NameLoad Return Call NameLoad Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str NameLoad
N/A N/A The authentication views flask abort flask flash flask jsonify flask redirect flask render_template flask request flask url_for flask.ext.login current_user flask.ext.login login_required flask.ext.login login_user flask.ext.login logout_user N/A requests werkzeug security markwiki app markwiki login_manager markwiki util markwiki.forms AddUserForm markwiki.forms LoginForm markwiki.forms RegisterForm markwiki.models.user User administrate N/A N/A N/A N/A N/A N/A N/A current_user name N/A N/A app config N/A ADMINISTRATOR N/A N/A N/A flash You don't have permission to do that. N/A N/A redirect N/A url_for index N/A N/A render_template administrate.html N/A N/A N/A app route /administrate/ login_required add_user N/A N/A N/A N/A N/A N/A N/A current_user name N/A N/A app config N/A ADMINISTRATOR N/A N/A N/A flash You don't have permission to do that. N/A N/A redirect N/A url_for index N/A form N/A AddUserForm N/A N/A N/A form validate_on_submit N/A N/A password N/A N/A util generate_password N/A pwhash N/A N/A security generate_password_hash password N/A user N/A User N/A N/A form username data password pwhash N/A N/A N/A N/A app user_storage create user N/A N/A render_template user_confirmation.html username N/A N/A form username data password password N/A N/A render_template add_user.html form form N/A N/A N/A app route /add_user/ methods N/A GET POST login_required register N/A N/A N/A N/A N/A N/A N/A N/A app config N/A ALLOW_REGISTRATION N/A N/A N/A flash You don't have permission to do that. N/A N/A redirect N/A url_for index N/A form N/A RegisterForm N/A N/A N/A form validate_on_submit N/A N/A pwhash N/A N/A security generate_password_hash N/A N/A form password data N/A user N/A User N/A N/A form username data password pwhash N/A N/A N/A N/A app user_storage create user N/A N/A login_user user N/A message N/A N/A Hi, {username}. You've successfully registered! format username N/A N/A form username data N/A N/A flash message category success N/A N/A redirect N/A url_for index N/A N/A render_template register.html form form N/A N/A N/A app route /register/ methods N/A GET POST login N/A N/A N/A N/A N/A form N/A LoginForm N/A N/A N/A form validate_on_submit N/A N/A error N/A validate_login form N/A N/A error None N/A N/A user N/A N/A N/A app user_storage find_by_name N/A N/A form username data N/A N/A login_user user N/A N/A flash You've logged in. category success N/A N/A redirect N/A N/A N/A form next data N/A url_for index N/A N/A N/A flash error N/A N/A render_template login.html form form N/A N/A N/A app route /login/ methods N/A GET POST validate_login N/A N/A form N/A N/A N/A Validate the user login from the provided form. A valid login produces
    no error messages so None is a valid user. N/A user N/A N/A N/A app user_storage find_by_name N/A N/A form username data N/A N/A user None N/A N/A That username is not valid. N/A N/A N/A N/A login_manager authenticate user N/A N/A form password data N/A N/A You've entered an incorrect password. N/A None N/A persona_login N/A N/A N/A N/A N/A N/A assertion N/A request form N/A N/A N/A abort 400 N/A location N/A N/A app config N/A SERVER_NAME N/A N/A location None N/A N/A location N/A N/A : join N/A localhost N/A str N/A N/A app config N/A SERVER_PORT N/A assertion_info N/A assertion audience N/A N/A request form N/A assertion location N/A r N/A N/A requests post https://verifier.login.persona.org/verify data assertion_info verify True N/A N/A N/A r ok N/A N/A Failed to post to Persona. N/A N/A abort 500 N/A data N/A N/A r json N/A N/A N/A N/A data get status okay N/A N/A user N/A N/A N/A app user_storage find_by_email N/A data N/A email N/A N/A user None N/A N/A password N/A N/A util generate_password N/A pwhash N/A N/A security generate_password_hash password N/A user N/A User N/A data N/A email N/A data N/A email persona pwhash N/A N/A N/A N/A app user_storage create user N/A N/A login_user user N/A N/A jsonify N/A next N/A N/A N/A request form get next N/A N/A N/A abort 401 N/A N/A N/A app route /persona/login/ methods N/A POST logout N/A N/A N/A N/A N/A N/A logout_user N/A N/A redirect N/A url_for index N/A N/A N/A app route /logout/ login_required