mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
SECURITY: Ensure that user has been authenticated.
This commit is contained in:
@@ -21,7 +21,10 @@ class UserAuthenticator
|
||||
end
|
||||
|
||||
def finish
|
||||
authenticator.after_create_account(@user, @session) if authenticator
|
||||
if authenticator && authenticated?
|
||||
authenticator.after_create_account(@user, @session)
|
||||
end
|
||||
|
||||
@session = nil
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user