mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 02:31:14 +01:00
improve remember me
This commit is contained in:
@@ -227,7 +227,7 @@ public class BasicSecurityContext implements WebSecurityContext
|
||||
T result = null;
|
||||
Subject subject = SecurityUtils.getSubject();
|
||||
|
||||
if (subject.isAuthenticated())
|
||||
if (subject.isAuthenticated() || subject.isRemembered())
|
||||
{
|
||||
PrincipalCollection pc = subject.getPrincipals();
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ public class DefaultAdministrationContext implements AdministrationContext
|
||||
{
|
||||
String username = null;
|
||||
|
||||
if (subject.isAuthenticated())
|
||||
if (subject.hasRole(Role.USER))
|
||||
{
|
||||
username = principal;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user