Skip to content

Commit

Permalink
CLDR-15744 make sure settings.user.touch() is called
Browse files Browse the repository at this point in the history
- if the REST API is called for login instead of the older WebContext path,
the lastLogin may not get updated.
  • Loading branch information
srl295 committed May 30, 2024
1 parent c5140cf commit 19c2308
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public Response login(
session.settings().set(SurveyMain.PREF_COVLEV, null);
LoginResponse resp = createLoginResponse(session);
WebContext.setSessionCookie(hresp, resp.sessionId);
session.user.touch(); // update last logged in time
return Response.ok().entity(resp).header(SESSION_HEADER, session.id).build();
} catch (LogoutException ioe) {
return Response.status(403, "Login Failed").build();
Expand Down

0 comments on commit 19c2308

Please sign in to comment.