diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2021-12-29 23:57:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-29 17:57:30 -0500 |
commit | 211f0c32d21f6afe708c4fb37615ec23da2d2d7b (patch) | |
tree | 29845f189a4815e01367528af6d83c0579bc3bc8 /routers/web/user/home.go | |
parent | 8ce1b539b1aaf242903b5b0c342dd592bd8da8d9 (diff) | |
download | gitea-211f0c32d21f6afe708c4fb37615ec23da2d2d7b.tar.gz gitea-211f0c32d21f6afe708c4fb37615ec23da2d2d7b.zip |
Removed unused endpoint. (#18127)
Diffstat (limited to 'routers/web/user/home.go')
-rw-r--r-- | routers/web/user/home.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/routers/web/user/home.go b/routers/web/user/home.go index 8bbc6dd0c3..367cf5ca08 100644 --- a/routers/web/user/home.go +++ b/routers/web/user/home.go @@ -769,17 +769,3 @@ func ShowGPGKeys(ctx *context.Context, uid int64) { writer.Close() ctx.PlainTextBytes(http.StatusOK, buf.Bytes()) } - -// Email2User show user page via email -func Email2User(ctx *context.Context) { - u, err := user_model.GetUserByEmail(ctx.FormString("email")) - if err != nil { - if user_model.IsErrUserNotExist(err) { - ctx.NotFound("GetUserByEmail", err) - } else { - ctx.ServerError("GetUserByEmail", err) - } - return - } - ctx.Redirect(u.HomeLink()) -} |