mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
improve remember me
This commit is contained in:
@@ -73,7 +73,7 @@ public class SubjectWrapper
|
||||
{
|
||||
String name;
|
||||
|
||||
if (subject.isAuthenticated())
|
||||
if (subject.isAuthenticated() || subject.isRemembered())
|
||||
{
|
||||
name = (String) subject.getPrincipal();
|
||||
}
|
||||
@@ -104,7 +104,7 @@ public class SubjectWrapper
|
||||
*/
|
||||
public boolean isAuthenticated()
|
||||
{
|
||||
return subject.isAuthenticated();
|
||||
return subject.isAuthenticated() || subject.isRemembered();
|
||||
}
|
||||
|
||||
//~--- fields ---------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user