Also send identity_changed event on passive login
(cherry picked from commit 695f3f3)
This commit is contained in:
parent
e5389d0f0f
commit
c9fb4e1ded
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue