Also send identity_changed event on passive login

(cherry picked from commit 695f3f3)
This commit is contained in:
Gina Häußge committed 2013-06-25 19:32:05 +02:00
1 parent e5389d0f0f
commit c9fb4e1ded
1 file changed
+1
+1
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)