Also send identity_changed event on passive login

master
Gina Häußge 2013-06-25 19:07:43 +02:00
parent ce9557798b
commit 695f3f391c
1 changed files with 1 additions and 0 deletions

View File

@ -720,6 +720,7 @@ def login():
elif "passive" in request.values.keys():
user = current_user
if user is not None and not user.is_anonymous():
identity_changed.send(current_app._get_current_object(), identity=Identity(user.get_id()))
return jsonify(user.asDict())
return jsonify(SUCCESS)