use of org.craftercms.security.exception.rememberme.RememberMeException in project profile by craftercms.
the class RememberMeManagerImpl method disableRememberMe.
protected void disableRememberMe(String loginId, RequestContext context) throws RememberMeException {
deleteRememberMeCookie(context.getResponse());
try {
authenticationService.deletePersistentLogin(loginId);
} catch (ProfileException e) {
throw new RememberMeException("Error invalidating persistent login '" + loginId + "'");
}
logger.debug("Persistent login '{}' invalidated", loginId);
}
Aggregations