Removed unused endpoint. (#18127)

This commit is contained in:
KN4CK3R authored and GitHub committed 2021-12-29 17:57:30 -05:00
1 parent 8ce1b539b1
commit 211f0c32d2
2 files changed
-15

No files matched your search

-14
View File
@@ -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())
}