Fixed IE issue with redirect. 308 return code doesn't work. 303 does. All other browsers are verified agains 303 code as well.

This commit is contained in:
Volodymyr Babak 2017-06-22 11:43:28 +03:00
parent 4e8c05f670
commit 4e45d24fd1

View File

@ -107,7 +107,7 @@ public class AuthController extends BaseController {
try { try {
URI location = new URI(createPasswordURI + "?activateToken=" + activateToken); URI location = new URI(createPasswordURI + "?activateToken=" + activateToken);
headers.setLocation(location); headers.setLocation(location);
responseStatus = HttpStatus.PERMANENT_REDIRECT; responseStatus = HttpStatus.SEE_OTHER;
} catch (URISyntaxException e) { } catch (URISyntaxException e) {
log.error("Unable to create URI with address [{}]", createPasswordURI); log.error("Unable to create URI with address [{}]", createPasswordURI);
responseStatus = HttpStatus.BAD_REQUEST; responseStatus = HttpStatus.BAD_REQUEST;
@ -146,7 +146,7 @@ public class AuthController extends BaseController {
try { try {
URI location = new URI(resetPasswordURI + "?resetToken=" + resetToken); URI location = new URI(resetPasswordURI + "?resetToken=" + resetToken);
headers.setLocation(location); headers.setLocation(location);
responseStatus = HttpStatus.PERMANENT_REDIRECT; responseStatus = HttpStatus.SEE_OTHER;
} catch (URISyntaxException e) { } catch (URISyntaxException e) {
log.error("Unable to create URI with address [{}]", resetPasswordURI); log.error("Unable to create URI with address [{}]", resetPasswordURI);
responseStatus = HttpStatus.BAD_REQUEST; responseStatus = HttpStatus.BAD_REQUEST;