|
@@ -1058,10 +1058,11 @@ func (l *Login) ForgetPwd() error {
|
|
|
//if l.GetSession("identCodeValue") == nil || l.GetString("identCode") != l.GetSession("identCodeValue") { //验证码不正确
|
|
|
// return "identCodeError"
|
|
|
//}
|
|
|
- l.SetSession("forgetPwdStep", phone)
|
|
|
+ l.SetSession("forgetPwdStep", 2)
|
|
|
+ l.SetSession("forgetPwdPhone", phone)
|
|
|
return "y"
|
|
|
} else if reqType == "save" {
|
|
|
- phone, _ := l.GetSession("forgetPwdStep").(string)
|
|
|
+ phone, _ := l.GetSession("forgetPwdPhone").(string)
|
|
|
if phone == "" {
|
|
|
return "timeout"
|
|
|
}
|
|
@@ -1082,6 +1083,7 @@ func (l *Login) ForgetPwd() error {
|
|
|
"$unset": map[string]interface{}{
|
|
|
"s_m_phone": "",
|
|
|
}}) {
|
|
|
+ l.DelSession("forgetPwdPhone")
|
|
|
l.DelSession("forgetPwdStep")
|
|
|
jy.ClearPhoneIdentSession(l.Session())
|
|
|
func(userid string) {
|