mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-20 16:10:50 +00:00
chore: remove deadcode in models/user
- Remove `ErrUserInactive` introduced inf5fa22a499
and removed inef2a343e27
- Remove `GetUserEmailsByNames` introduced ina4cbe79567
and removed in08ae6bb7ed
- Remove `GetUserNamesByIDs` introduced in9ff4e1d2d9
and removed inb3a6596b54
This commit is contained in:
parent
fd285bfc4e
commit
801c392e0c
6 changed files with 0 additions and 81 deletions
|
@ -225,15 +225,6 @@ func SignInPost(ctx *context.Context) {
|
|||
log.Warn("Failed authentication attempt for %s from %s: %v", form.UserName, ctx.RemoteAddr(), err)
|
||||
ctx.Data["Title"] = ctx.Tr("auth.prohibit_login")
|
||||
ctx.HTML(http.StatusOK, "user/auth/prohibit_login")
|
||||
} else if user_model.IsErrUserInactive(err) {
|
||||
if setting.Service.RegisterEmailConfirm {
|
||||
ctx.Data["Title"] = ctx.Tr("auth.active_your_account")
|
||||
ctx.HTML(http.StatusOK, TplActivate)
|
||||
} else {
|
||||
log.Warn("Failed authentication attempt for %s from %s: %v", form.UserName, ctx.RemoteAddr(), err)
|
||||
ctx.Data["Title"] = ctx.Tr("auth.prohibit_login")
|
||||
ctx.HTML(http.StatusOK, "user/auth/prohibit_login")
|
||||
}
|
||||
} else {
|
||||
ctx.ServerError("UserSignIn", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue