mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:31:18 +08:00
SECURITY: Ensure that user has been authenticated.
This commit is contained in:
@ -611,6 +611,8 @@ describe UsersController do
|
||||
auth = session[:authentication] = {}
|
||||
auth[:authenticator_name] = 'twitter'
|
||||
auth[:extra_data] = twitter_auth
|
||||
auth[:email_valid] = true
|
||||
auth[:email] = @user.email
|
||||
|
||||
post_user
|
||||
|
||||
|
Reference in New Issue
Block a user