|
@@ -63,22 +63,23 @@ public class SigninController {
|
63
|
63
|
@ApiOperation(value = "로그인")
|
64
|
64
|
@PostMapping("/sign-in-app")
|
65
|
65
|
public ResponseEntity<JwtResponse> signinApp(@RequestBody @Valid SigninAppRequest signinAppRequest) throws Exception {
|
66
|
|
-
|
|
66
|
+/*
|
67
|
67
|
hashed = StringEscapeUtils.unescapeJava(hashed);
|
68
|
68
|
String brandId = signinAppRequest.getBrandId();
|
69
|
69
|
String userId = CryptoUtil.decrypt(signinAppRequest.getUserId(), hashed);
|
70
|
70
|
String password = CryptoUtil.decrypt(signinAppRequest.getPassword(), hashed);
|
71
|
71
|
|
72
|
72
|
return ResponseEntity.ok(signinService.signinApp(brandId, userId, password, signinAppRequest.getDeviId(), signinAppRequest.getDeviTpCd(), signinAppRequest.getDeviOsVer(), signinAppRequest.getAppReg(), signinAppRequest.getAppVer() ));
|
73
|
|
- /* 모바일 앱 네이티브로 로그인시 처리
|
|
73
|
+ */
|
|
74
|
+ /* 모바일 앱 네이티브로 로그인시 처리*/
|
74
|
75
|
hashed = StringEscapeUtils.unescapeJava(hashed);
|
75
|
76
|
String brandId = signinAppRequest.getBrandId();
|
76
|
|
- String userId = CryptoUtil.decrypt(signinAppRequest.getUserId(), hashed);
|
77
|
|
- String password = CryptoUtil.decrypt(signinAppRequest.getPassword(), hashed);
|
78
|
|
- //String userId = CryptoUtil.doDecrypt(signinAppRequest.getUserId(), hashed);
|
79
|
|
- //String password = CryptoUtil.doDecrypt(signinAppRequest.getPassword(), hashed);
|
80
|
|
- return ResponseEntity.ok(signinService.signinApp(brandId, userId, password));
|
81
|
|
- */
|
|
77
|
+ //String userId = CryptoUtil.decrypt(signinAppRequest.getUserId(), hashed);
|
|
78
|
+ //String password = CryptoUtil.decrypt(signinAppRequest.getPassword(), hashed);
|
|
79
|
+ String userId = CryptoUtil.doDecrypt(signinAppRequest.getUserId(), hashed);
|
|
80
|
+ String password = CryptoUtil.doDecrypt(signinAppRequest.getPassword(), hashed);
|
|
81
|
+ return ResponseEntity.ok(signinService.signinApp(brandId, userId, password, signinAppRequest.getDeviId(), signinAppRequest.getDeviTpCd(), signinAppRequest.getDeviOsVer(), signinAppRequest.getAppReg(), signinAppRequest.getAppVer() ));
|
|
82
|
+
|
82
|
83
|
}
|
83
|
84
|
|
84
|
85
|
/**
|