Skip to content
Snippets Groups Projects
Commit 2d1fc14b authored by brinn's avatar brinn
Browse files

fix: do not try to call tryGetAndAuthenticateuserByEmail on authentication...

fix: do not try to call tryGetAndAuthenticateuserByEmail on authentication services that do not support it
(merged from 10.06.x)

SVN: 18551
parent b9073e3f
No related branches found
No related tags found
No related merge requests found
...@@ -121,6 +121,10 @@ public class StackedAuthenticationService implements IAuthenticationService ...@@ -121,6 +121,10 @@ public class StackedAuthenticationService implements IAuthenticationService
{ {
for (IAuthenticationService service : delegates) for (IAuthenticationService service : delegates)
{ {
if (service.supportsListingByEmail() == false)
{
continue;
}
final Principal principal = final Principal principal =
service.tryGetAndAuthenticateUserByEmail(email, passwordOrNull); service.tryGetAndAuthenticateUserByEmail(email, passwordOrNull);
if (principal != null) if (principal != null)
......
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