| | |
| | | } |
| | | } |
| | | |
| | | // 邮箱 |
| | | if ("2".equals(type)) { |
| | | if(!isValidEmail(username)) { |
| | | throw new BusinessException("not a valid Email!"); |
| | | } |
| | | } |
| | | |
| | | |
| | | // 用户名 |
| | | if ("3".equals(type)) { |
| | | if(!isValidUsername(username)) { |
| | |
| | | reg.setPassword(password); |
| | | reg.setSafeword("000000"); |
| | | reg.setReco_usercode(usercode); |
| | | |
| | | this.localUserService.saveRegisterNoVerifcode(reg, type); |
| | | SecUser secUser = this.secUserService.findUserByLoginName(username); |
| | | |
| | | project.log.Log log = new project.log.Log(); |
| | |
| | | throw new BusinessException("not a valid Phone!"); |
| | | } |
| | | } |
| | | |
| | | // 邮箱 |
| | | if ("2".equals(type)) { |
| | | if(!isValidEmail(username)) { |
| | | throw new BusinessException("not a valid Email!"); |
| | | } |
| | | } |
| | | |
| | | |
| | | // 用户名 |
| | | if ("3".equals(type)) { |