修正2个bug。 1:未验证显示密码错误 2:未验证无法重发email
This commit is contained in:
parent
6c67b704e7
commit
6f6e184955
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ func GetActiveUserByOpenID(openid string) (User, error) {
|
|||
// GetUserByEmail 用Email获取用户
|
||||
func GetUserByEmail(email string) (User, error) {
|
||||
var user User
|
||||
result := DB.Set("gorm:auto_preload", true).Where("status = ? and email = ?", Active, email).First(&user)
|
||||
result := DB.Set("gorm:auto_preload", true).Where("email = ?", email).First(&user)
|
||||
return user, result.Error
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue