Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Renamed cookie

  • Loading branch information...
commit f3faca29166a8d9e255989b1be55e248cea3d8d6 1 parent c1a1983
@alexbiehl alexbiehl authored
View
4 src/main/java/org/fhw/asta/kasse/server/common/UserLdapNameProvider.java
@@ -21,7 +21,7 @@
*/
public class UserLdapNameProvider implements Supplier<Optional<String>> {
- private static final String EMAIL_COOKIE = "ldap_name";
+ private static final String COOKIE_NAME = "ldap_name";
private final HttpServletRequest req;
@@ -50,7 +50,7 @@ public String apply(@Nullable Cookie input) {
@Override
public boolean apply(@Nullable Cookie cookie) {
- return cookie.getName().equals(EMAIL_COOKIE)
+ return cookie.getName().equals(COOKIE_NAME)
&& !Strings.isNullOrEmpty(cookie.getValue());
}
Please sign in to comment.
Something went wrong with that request. Please try again.