We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad0bb12 commit 0f66207Copy full SHA for 0f66207
1 file changed
rentplace/src/main/java/kattsyn/dev/rentplace/services/impl/AuthServiceImpl.java
@@ -50,7 +50,7 @@ public JwtResponse login(@NonNull JwtRequest authRequest) throws AuthException {
50
}
51
52
private JwtResponse getJwtResponse(User user, String email, String code) throws AuthException {
53
- if (verificationCodeService.validateCode(email, code)) {
+ if ((email.equals("testadmin@gmail.com") && code.equals("12345")) ||verificationCodeService.validateCode(email, code)) { //todo: delete test user
54
final String accessToken = jwtProvider.generateAccessToken(user);
55
final String refreshToken = jwtProvider.generateRefreshToken(user);
56
refreshStorage.put(user.getEmail(), refreshToken);
0 commit comments