mirror of
https://git.ptzo.gdn/feditools/relay.git
synced 2024-09-21 12:47:12 +00:00
allow locked accounts to login (#167)
Reviewed-on: https://git.ptzo.gdn/feditools/relay/pulls/167 Co-authored-by: Tyr Mactire <tyr@pettingzoo.co> Co-committed-by: Tyr Mactire <tyr@pettingzoo.co>
This commit is contained in:
parent
7c1aa35a48
commit
5e51972bce
@ -111,14 +111,6 @@ func (m *Module) CallbackOauthGetHandler(w http.ResponseWriter, r *http.Request)
|
||||
return
|
||||
}
|
||||
|
||||
// check if account is locked
|
||||
if account.Info.IsLocked {
|
||||
l.Debugf("account '@%s@%s' locked", account.Username, instance.GetDomain())
|
||||
m.returnErrorPage(w, r, http.StatusForbidden, "account locked")
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// check if account is a bot
|
||||
if account.Info.IsBot {
|
||||
l.Debugf("account '@%s@%s' is a bot", account.Username, instance.GetDomain())
|
||||
|
Loading…
Reference in New Issue
Block a user