mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 01:05:11 +08:00
FEATURE: Trigger Discourse events from authenticators. (#7724)
This commit is contained in:
@ -1165,6 +1165,7 @@ class UsersController < ApplicationController
|
||||
|
||||
# We're likely going to contact the remote auth provider, so hijack request
|
||||
hijack do
|
||||
DiscourseEvent.trigger(:before_auth_revoke, authenticator, user)
|
||||
result = authenticator.revoke(user, skip_remote: skip_remote)
|
||||
if result
|
||||
render json: success_json
|
||||
|
Reference in New Issue
Block a user