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:
Tyr Mactire 2022-11-27 04:24:56 +00:00 committed by PettingZoo Gitea
parent 7c1aa35a48
commit 5e51972bce
No known key found for this signature in database
GPG Key ID: 39788A4390A1372F

View File

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