mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
fix wrong UnsupportedTokenException
This commit is contained in:
@@ -217,7 +217,7 @@ public class ScmRealm extends AuthorizingRealm
|
||||
AuthenticationToken authToken)
|
||||
throws AuthenticationException
|
||||
{
|
||||
if ((authToken instanceof ScmAuthenticationToken))
|
||||
if (!(authToken instanceof ScmAuthenticationToken))
|
||||
{
|
||||
throw new UnsupportedTokenException("ScmAuthenticationToken is required");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user