mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #5872 from OsamaSayegh/users-controller-specs-to-request
REFACTOR: users contollers specs => request specs
This commit is contained in:
@@ -357,7 +357,7 @@ class UsersController < ApplicationController
|
|||||||
authentication = UserAuthenticator.new(user, session)
|
authentication = UserAuthenticator.new(user, session)
|
||||||
|
|
||||||
if !authentication.has_authenticator? && !SiteSetting.enable_local_logins
|
if !authentication.has_authenticator? && !SiteSetting.enable_local_logins
|
||||||
return render body: nil, status: 500
|
return render body: nil, status: :forbidden
|
||||||
end
|
end
|
||||||
|
|
||||||
authentication.start
|
authentication.start
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user