mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-27 22:40:19 +01:00
disable apache shiro remember me function
This commit is contained in:
@@ -74,28 +74,7 @@ public final class Tokens
|
||||
public static AuthenticationToken createAuthenticationToken(
|
||||
HttpServletRequest request, String username, String password)
|
||||
{
|
||||
return createAuthenticationToken(request, username, password, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Build an {@link AuthenticationToken} for use with
|
||||
* {@link Subject#login(org.apache.shiro.authc.AuthenticationToken)}.
|
||||
*
|
||||
*
|
||||
* @param request servlet request
|
||||
* @param username username of the user to authenticate
|
||||
* @param password password of the user to authenticate
|
||||
* @param rememberMe true to remember the user across sessions
|
||||
*
|
||||
* @return authentication token
|
||||
*
|
||||
* @since 1.31
|
||||
*/
|
||||
public static AuthenticationToken createAuthenticationToken(
|
||||
HttpServletRequest request, String username, String password,
|
||||
boolean rememberMe)
|
||||
{
|
||||
return new UsernamePasswordToken(username, password, rememberMe,
|
||||
return new UsernamePasswordToken(username, password,
|
||||
request.getRemoteAddr());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user