Revision ff057ec1 src/gr/grnet/pithos/web/client/Pithos.java
b/src/gr/grnet/pithos/web/client/Pithos.java | ||
---|---|---|
517 | 517 |
username = Window.Location.getParameter("user"); |
518 | 518 |
token = Window.Location.getParameter("token"); |
519 | 519 |
Configuration conf = (Configuration) GWT.create(Configuration.class); |
520 |
Dictionary otherProperties = Dictionary.getDictionary("otherProperties"); |
|
520 | 521 |
if (username == null || username.length() == 0 || token == null || token.length() == 0) { |
521 |
String cookie = conf.authCookie();
|
|
522 |
String cookie = otherProperties.get("authCookie");
|
|
522 | 523 |
String auth = Cookies.getCookie(cookie); |
523 | 524 |
if (auth == null) { |
524 | 525 |
authenticateUser(); |
... | ... | |
538 | 539 |
return true; |
539 | 540 |
} |
540 | 541 |
|
541 |
Cookies.setCookie(conf.authCookie(), username + conf.cookieSeparator() + token, null, "", "/", false);
|
|
542 |
Cookies.setCookie(otherProperties.get("authCookie"), username + conf.cookieSeparator() + token, null, "", "/", false);
|
|
542 | 543 |
return true; |
543 | 544 |
} |
544 | 545 |
|
Also available in: Unified diff