PLT-3454 Verification Email fails to send when logging in with username (#3475)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
068df708c0
Коммит
0f873c01da
@@ -2263,12 +2263,10 @@ func resendVerification(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if result := <-Srv.Store.User().GetByEmail(email); result.Err != nil {
|
||||
c.Err = result.Err
|
||||
if user, error := getUserForLogin(email, false); error != nil {
|
||||
c.Err = error
|
||||
return
|
||||
} else {
|
||||
user := result.Data.(*model.User)
|
||||
|
||||
if user.LastActivityAt > 0 {
|
||||
go SendEmailChangeVerifyEmail(c, user.Id, user.Email, c.GetSiteURL())
|
||||
} else {
|
||||
|
||||
Ссылка в новой задаче
Block a user