first try to login using api key

This commit is contained in:
Athou
2014-08-17 16:56:23 +02:00
parent 247a3d5ab3
commit bcaab694c8

View File

@@ -45,12 +45,12 @@ public class SecurityCheckProvider implements InjectableProvider<SecurityCheck,
@Override
public User getValue(HttpContext c) {
Optional<User> user = cookieSessionLogin();
Optional<User> user = apiKeyLogin(c);
if (!user.isPresent()) {
user = basicAuthenticationLogin(c);
}
if (!user.isPresent()) {
user = apiKeyLogin(c);
user = cookieSessionLogin();
}
if (user.isPresent()) {