...
|
...
|
@@ -70,7 +70,7 @@ public class UserControllerTest extends AbstractControllerTest { |
70
|
70
|
|
71
|
71
|
logout();
|
72
|
72
|
doGet("/api/noauth/activate?activateToken={activateToken}", TestMailService.currentActivateToken)
|
73
|
|
- .andExpect(status().isPermanentRedirect())
|
|
73
|
+ .andExpect(status().isSeeOther())
|
74
|
74
|
.andExpect(header().string(HttpHeaders.LOCATION, "/login/createPassword?activateToken=" + TestMailService.currentActivateToken));
|
75
|
75
|
|
76
|
76
|
JsonNode tokenInfo = readResponse(doPost("/api/noauth/activate", "activateToken", TestMailService.currentActivateToken, "password", "testPassword").andExpect(status().isOk()), JsonNode.class);
|
...
|
...
|
@@ -120,7 +120,7 @@ public class UserControllerTest extends AbstractControllerTest { |
120
|
120
|
doPost("/api/noauth/resetPasswordByEmail", "email", email)
|
121
|
121
|
.andExpect(status().isOk());
|
122
|
122
|
doGet("/api/noauth/resetPassword?resetToken={resetToken}", TestMailService.currentResetPasswordToken)
|
123
|
|
- .andExpect(status().isPermanentRedirect())
|
|
123
|
+ .andExpect(status().isSeeOther())
|
124
|
124
|
.andExpect(header().string(HttpHeaders.LOCATION, "/login/resetPassword?resetToken=" + TestMailService.currentResetPasswordToken));
|
125
|
125
|
|
126
|
126
|
JsonNode tokenInfo = readResponse(doPost("/api/noauth/resetPassword", "resetToken", TestMailService.currentResetPasswordToken, "password", "testPassword2").andExpect(status().isOk()), JsonNode.class);
|
...
|
...
|
|