|
@@ -1013,10 +1013,11 @@ func (l *Login) WxLogin() {
|
|
|
// ForgetPwd 修改登录密码
|
|
|
func (l *Login) ForgetPwd() error {
|
|
|
defer qutil.Catch()
|
|
|
- log.Println(l.Method(), "----++++++-----", l.GetSession("forgetPwdStep"))
|
|
|
+ log.Println(l.Method(), "--手机号:", l.GetSession("forgetPwdPhone"), "----forgetPwdStep-----", l.GetSession("forgetPwdStep"), "---step--", l.GetString("step"))
|
|
|
if l.Method() == "GET" {
|
|
|
if l.GetString("step") == "2" {
|
|
|
if l.GetSession("forgetPwdStep") == "2" {
|
|
|
+ log.Println("===================================================")
|
|
|
return l.Render("/me/forgetPwdTwo.html")
|
|
|
}
|
|
|
}
|
|
@@ -1059,7 +1060,7 @@ func (l *Login) ForgetPwd() error {
|
|
|
//if l.GetSession("identCodeValue") == nil || l.GetString("identCode") != l.GetSession("identCodeValue") { //验证码不正确
|
|
|
// return "identCodeError"
|
|
|
//}
|
|
|
- l.SetSession("forgetPwdStep", 2)
|
|
|
+ l.SetSession("forgetPwdStep", "2")
|
|
|
l.SetSession("forgetPwdPhone", phone)
|
|
|
return "y"
|
|
|
} else if reqType == "save" {
|