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