mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-30 15:25:19 +00:00
Add some docstrings
This commit is contained in:
@@ -66,6 +66,10 @@ def confirm(token):
|
||||
|
||||
@auth.before_app_request
|
||||
def before_request():
|
||||
"""
|
||||
Checks if a user is unconfirmed when visiting specific sites. Redirects to
|
||||
unconfirmed view if user is unconfirmed.
|
||||
"""
|
||||
if current_user.is_authenticated \
|
||||
and not current_user.confirmed \
|
||||
and request.blueprint != 'auth' \
|
||||
@@ -128,6 +132,9 @@ def password_reset(token):
|
||||
@auth.route('/settings', methods=['GET', 'POST'])
|
||||
@login_required
|
||||
def settings():
|
||||
"""
|
||||
View where loged in User can change own User information like Password etc.
|
||||
"""
|
||||
form = ChangeAccountForm()
|
||||
if form.validate_on_submit():
|
||||
flash('It is just a test, nothing changed.')
|
||||
|
Reference in New Issue
Block a user