Also send identity_changed event on passive login

(cherry picked from commit 695f3f3)
master
Gina Häußge 2013-06-25 19:07:43 +02:00
parent e5389d0f0f
commit c9fb4e1ded
1 changed files with 1 additions and 0 deletions

View File

@ -655,6 +655,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)