Skip to content
Snippets Groups Projects
Commit 7d7b5661 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

auth cookie is valid as long as session

parent 4cfeef1b
No related branches found
No related tags found
1 merge request!67Resolve "Clicking on map with private comments might produce an error"
......@@ -51,7 +51,7 @@ public class UserController extends BaseController {
} else {
Map<String, Object> result = new HashMap<>();
final Boolean useSecureCookie = false;
final int expiryTime = (int) (token.getExpires().getTimeInMillis() - Calendar.getInstance().getTimeInMillis() - 60000) / 1000;
final int expiryTime = (int) (token.getExpires().getTimeInMillis() - Calendar.getInstance().getTimeInMillis()) / 1000;
final String cookiePath = "/";
Cookie cookie = new Cookie("MINERVA_AUTH_TOKEN", token.getId());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment