mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 05:52:49 +08:00
return 403 forbidden when local logins disabled
This commit is contained in:
parent
bac0482061
commit
449399bef3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user