Browse Source

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

pull/176/head
Volodymyr Babak 9 years ago
parent
commit
4e45d24fd1
  1. 4
      application/src/main/java/org/thingsboard/server/controller/AuthController.java

4
application/src/main/java/org/thingsboard/server/controller/AuthController.java

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

Loading…
Cancel
Save