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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if result := <-Srv.Store.User().GetByEmail(email); result.Err != nil {
|
if user, error := getUserForLogin(email, false); error != nil {
|
||||||
c.Err = result.Err
|
c.Err = error
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
user := result.Data.(*model.User)
|
|
||||||
|
|
||||||
if user.LastActivityAt > 0 {
|
if user.LastActivityAt > 0 {
|
||||||
go SendEmailChangeVerifyEmail(c, user.Id, user.Email, c.GetSiteURL())
|
go SendEmailChangeVerifyEmail(c, user.Id, user.Email, c.GetSiteURL())
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user