mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-16 10:16:16 +01:00
improve authentication system
This commit is contained in:
@@ -45,8 +45,8 @@ public class AuthenticationResult
|
||||
{
|
||||
|
||||
/** Field description */
|
||||
public static final AuthenticationResult NEXT =
|
||||
new AuthenticationResult(AuthenticationState.NEXT);
|
||||
public static final AuthenticationResult NOT_FOUND =
|
||||
new AuthenticationResult(AuthenticationState.NOT_FOUND);
|
||||
|
||||
/** Field description */
|
||||
public static final AuthenticationResult FAILED =
|
||||
@@ -65,6 +65,18 @@ public class AuthenticationResult
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs ...
|
||||
*
|
||||
*
|
||||
*
|
||||
* @param user
|
||||
*/
|
||||
public AuthenticationResult(User user)
|
||||
{
|
||||
this.state = AuthenticationState.SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs ...
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user