mirror of
https://github.com/wassname/flask-security.git
synced 2026-09-09 11:22:35 +08:00
sending signals fixed
This commit is contained in:
@@ -33,8 +33,8 @@ def register_user(**kwargs):
|
||||
confirmation_link, token = generate_confirmation_link(user)
|
||||
do_flash(*get_message('CONFIRM_REGISTRATION', email=user.email))
|
||||
|
||||
user_registered.send(dict(user=user, confirm_token=token),
|
||||
app=app._get_current_object())
|
||||
user_registered.send(app._get_current_object(),
|
||||
user=user, confirm_token=token)
|
||||
|
||||
if config_value('SEND_REGISTER_EMAIL'):
|
||||
send_mail(config_value('EMAIL_SUBJECT_REGISTER'), user.email, 'welcome',
|
||||
|
||||
Reference in New Issue
Block a user