fixed shadowing warning
This commit is contained in:
parent
d8c6a0a59b
commit
086c643365
|
@ -29,13 +29,13 @@ from .routes import *
|
||||||
|
|
||||||
|
|
||||||
@user_registered.connect_via(app)
|
@user_registered.connect_via(app)
|
||||||
def user_registered_sighandler(app, user, confirm_token):
|
def user_registered_sighandler(application, user, confirm_token):
|
||||||
"""
|
"""
|
||||||
Called after a user was created
|
Called after a user was created
|
||||||
"""
|
"""
|
||||||
role = user_datastore.find_role('user')
|
role = user_datastore.find_role('user')
|
||||||
user_datastore.add_role_to_user(user, role)
|
user_datastore.add_role_to_user(user, role)
|
||||||
if user.email == app.config['ADMIN_MAIL']:
|
if user.email == application.config['ADMIN_MAIL']:
|
||||||
# if the user selected the preconfigured email for the admin account
|
# if the user selected the preconfigured email for the admin account
|
||||||
role = user_datastore.find_role('admin')
|
role = user_datastore.find_role('admin')
|
||||||
user_datastore.add_role_to_user(user, role)
|
user_datastore.add_role_to_user(user, role)
|
||||||
|
|
Loading…
Reference in New Issue