mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-20 08:50:21 +00:00
Signed-off-by: Adam Baxter <codeberg@voltagex.org> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5479 Reviewed-by: Otto <otto@codeberg.org> Co-authored-by: voltagex <voltagex@noreply.codeberg.org> Co-committed-by: voltagex <voltagex@noreply.codeberg.org>
This commit is contained in:
parent
c82e5d1a1a
commit
d17db93fbf
2 changed files with 3 additions and 1 deletions
|
@ -122,7 +122,7 @@ func webAuth(authMethod auth_service.Method) func(*context.Context) {
|
|||
ar, err := common.AuthShared(ctx.Base, ctx.Session, authMethod)
|
||||
if err != nil {
|
||||
log.Error("Failed to verify user: %v", err)
|
||||
ctx.Error(http.StatusUnauthorized, "Verify")
|
||||
ctx.Error(http.StatusUnauthorized, ctx.Locale.TrString("auth.unauthorized_credentials", "https://codeberg.org/forgejo/forgejo/issues/2809"))
|
||||
return
|
||||
}
|
||||
ctx.Doer = ar.Doer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue