Commit 4e45d24fd1882679aec123c285a84835c5d7d4b3
1 parent
4e8c05f6
Fixed IE issue with redirect. 308 return code doesn't work. 303 does. All other …
…browsers are verified agains 303 code as well.
Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -107,7 +107,7 @@ public class AuthController extends BaseController { |
107 | 107 | try { |
108 | 108 | URI location = new URI(createPasswordURI + "?activateToken=" + activateToken); |
109 | 109 | headers.setLocation(location); |
110 | - responseStatus = HttpStatus.PERMANENT_REDIRECT; | |
110 | + responseStatus = HttpStatus.SEE_OTHER; | |
111 | 111 | } catch (URISyntaxException e) { |
112 | 112 | log.error("Unable to create URI with address [{}]", createPasswordURI); |
113 | 113 | responseStatus = HttpStatus.BAD_REQUEST; |
... | ... | @@ -146,7 +146,7 @@ public class AuthController extends BaseController { |
146 | 146 | try { |
147 | 147 | URI location = new URI(resetPasswordURI + "?resetToken=" + resetToken); |
148 | 148 | headers.setLocation(location); |
149 | - responseStatus = HttpStatus.PERMANENT_REDIRECT; | |
149 | + responseStatus = HttpStatus.SEE_OTHER; | |
150 | 150 | } catch (URISyntaxException e) { |
151 | 151 | log.error("Unable to create URI with address [{}]", resetPasswordURI); |
152 | 152 | responseStatus = HttpStatus.BAD_REQUEST; | ... | ... |