FEATURE: Trigger Discourse events from authenticators. (#7724)

This commit is contained in:
Dan Ungureanu
2019-06-11 04:28:42 +03:00
committed by Sam
parent d073a7d5a8
commit a046f6ced5
3 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,7 @@ class Users::OmniauthCallbacksController < ApplicationController
else
@auth_result = authenticator.after_authenticate(auth)
end
DiscourseEvent.trigger(:after_auth, authenticator, @auth_result)
preferred_origin = request.env['omniauth.origin']