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