소스 검색

Merge branch 'master' into feature/v4.8.26

lianbingjie 2 년 전
부모
커밋
76afcbb244
1개의 변경된 파일8개의 추가작업 그리고 10개의 파일을 삭제
  1. 8 10
      src/jfw/modules/app/src/app/front/login.go

+ 8 - 10
src/jfw/modules/app/src/app/front/login.go

@@ -466,16 +466,14 @@ func (l *Login) Register() error {
 			l.SetSession("registerStep", "2")
 			return "y"
 		} else if reqType == "save" {
-			//phone, _ := l.GetSession("identCodeKey").(string)
-			//if phone == "" {
-			//	return "timeout"
-			//}
-			//password := strings.TrimSpace(l.GetString("password"))
-			//if !passwordReg.MatchString(password) {
-			//	return "passwordError"
-			//}
-			phone := l.GetString("phone")
-			password := ""
+			phone, _ := l.GetSession("identCodeKey").(string)
+			if phone == "" {
+				return "timeout"
+			}
+			password := strings.TrimSpace(l.GetString("password"))
+			if !passwordReg.MatchString(password) {
+				return "passwordError"
+			}
 			retVal := func() string {
 				rid := l.GetString("rid")
 				oid := l.GetString("oid")