Merge pull request #5872 from OsamaSayegh/users-controller-specs-to-request

REFACTOR: users contollers specs => request specs
This commit is contained in:
Guo Xiang Tan
2018-05-28 13:32:37 +08:00
committed by GitHub
3 changed files with 2378 additions and 2504 deletions

View File

@@ -357,7 +357,7 @@ class UsersController < ApplicationController
authentication = UserAuthenticator.new(user, session)
if !authentication.has_authenticator? && !SiteSetting.enable_local_logins
return render body: nil, status: 500
return render body: nil, status: :forbidden
end
authentication.start

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff