SECURITY: Ensure that user has been authenticated.

This commit is contained in:
Guo Xiang Tan
2017-02-24 10:27:41 +08:00
parent 3754b038e8
commit fbe51d68a7
3 changed files with 42 additions and 1 deletions

View File

@ -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