fix: Run on_session_creation on OAuth logins
Closes https://github.com/frappe/frappe/issues/31409
This commit is contained in:
parent
9c6f25afb0
commit
00a6345012
1 changed files with 2 additions and 2 deletions
|
|
@ -204,8 +204,8 @@ def login_oauth_user(
|
|||
http_status_code=403,
|
||||
)
|
||||
|
||||
frappe.local.login_manager.user = user
|
||||
frappe.local.login_manager.post_login()
|
||||
frappe.local.login_manager.login_as(user)
|
||||
frappe.local.login_manager.run_trigger("on_session_creation")
|
||||
|
||||
# because of a GET request!
|
||||
frappe.db.commit()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue