File tree 2 files changed +0
-15
lines changed
2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -769,17 +769,3 @@ func ShowGPGKeys(ctx *context.Context, uid int64) {
769
769
writer .Close ()
770
770
ctx .PlainTextBytes (http .StatusOK , buf .Bytes ())
771
771
}
772
-
773
- // Email2User show user page via email
774
- func Email2User (ctx * context.Context ) {
775
- u , err := user_model .GetUserByEmail (ctx .FormString ("email" ))
776
- if err != nil {
777
- if user_model .IsErrUserNotExist (err ) {
778
- ctx .NotFound ("GetUserByEmail" , err )
779
- } else {
780
- ctx .ServerError ("GetUserByEmail" , err )
781
- }
782
- return
783
- }
784
- ctx .Redirect (u .HomeLink ())
785
- }
Original file line number Diff line number Diff line change @@ -376,7 +376,6 @@ func RegisterRoutes(m *web.Route) {
376
376
m .Post ("/activate" , user .ActivatePost , reqSignIn )
377
377
m .Any ("/activate_email" , user .ActivateEmail )
378
378
m .Get ("/avatar/{username}/{size}" , user .AvatarByUserName )
379
- m .Get ("/email2user" , user .Email2User )
380
379
m .Get ("/recover_account" , user .ResetPasswd )
381
380
m .Post ("/recover_account" , user .ResetPasswdPost )
382
381
m .Get ("/forgot_password" , user .ForgotPasswd )
You can’t perform that action at this time.
0 commit comments