mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
85149: Fix Sword password login
This commit is contained in:
@@ -219,7 +219,9 @@ public class PasswordAuthentication
|
||||
.checkPassword(context, eperson, password)) {
|
||||
// login is ok if password matches:
|
||||
context.setCurrentUser(eperson);
|
||||
request.getSession().setAttribute(PASSWORD_AUTHENTICATED, true);
|
||||
if (request != null) {
|
||||
request.getSession().setAttribute(PASSWORD_AUTHENTICATED, true);
|
||||
}
|
||||
log.info(LogHelper.getHeader(context, "authenticate", "type=PasswordAuthentication"));
|
||||
return SUCCESS;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user