123456789101112131415161718192021222324252627282930313233 |
- package com.lemon.lifecenter.common;
- import org.springframework.stereotype.Controller;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestMethod;
- import org.springframework.web.bind.annotation.RequestParam;
- import org.springframework.web.bind.annotation.ResponseBody;
- import org.springframework.web.servlet.ModelAndView;
- @Controller
- @RequestMapping("/common")
- public class CommonController extends LifeCenterController {
- // 패스워드 규칙 체크
- @RequestMapping( value="/passwordCheck", method=RequestMethod.POST )
- @ResponseBody
- public String passwordCheck( @RequestParam(value="password", required=true) String password ) {
-
- /**
- * 0: OK (규칙에 부합됨)
- * 1: 입력된 패스워드가 null이거나 없음.
- * 2: 입력된 패스워드가 16자 이상임 15자리까지 입력가능.
- * 3: 입력된 패스워드가 2조합 미만이고 10자리 미만.
- * 4: 입력된 패스워드가 2조합인데, 8자리 미만임.
- * 5:
- * 6: 입력된 패스워드가 3자리 이상 연속된 값이 포함됨. (예, abc, def, 123)
- * 7: 입력된 패스워드가 키보드 조합으로 3자리 이상 연속된 값이 포함됨. (예, asd, qwe, jkl)
- * 8: 입력된 패스워드가 3자리 이상 같은 값이 포함됨. (예, aaa, 222)
- * 99: 에러
- */
-
- return LifeCenterFunction.checkPw( password );
- }
- }
|