Send verification email if user has never logged in, send email changed email otherwise (#3759)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
53c068952c
Коммит
7da58ceb9b
@@ -2321,9 +2321,9 @@ func resendVerification(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if _, err := GetStatus(user.Id); err != nil {
|
if _, err := GetStatus(user.Id); err != nil {
|
||||||
go SendEmailChangeVerifyEmail(c, user.Id, user.Email, c.GetSiteURL())
|
|
||||||
} else {
|
|
||||||
go SendVerifyEmail(c, user.Id, user.Email, c.GetSiteURL())
|
go SendVerifyEmail(c, user.Id, user.Email, c.GetSiteURL())
|
||||||
|
} else {
|
||||||
|
go SendEmailChangeVerifyEmail(c, user.Id, user.Email, c.GetSiteURL())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user