From cc730b726dd220b73b91c0706f0bee786c915916 Mon Sep 17 00:00:00 2001 From: Victor Korir Date: Sat, 15 Apr 2023 19:06:39 -0700 Subject: [PATCH] Added expireIn user config to redirect users to login screen on session expiry --- .../presentation/web/controllers/user/UserAPIController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/wise/portal/presentation/web/controllers/user/UserAPIController.java b/src/main/java/org/wise/portal/presentation/web/controllers/user/UserAPIController.java index a24609268..904597eef 100644 --- a/src/main/java/org/wise/portal/presentation/web/controllers/user/UserAPIController.java +++ b/src/main/java/org/wise/portal/presentation/web/controllers/user/UserAPIController.java @@ -105,6 +105,7 @@ HashMap getUserInfo(Authentication auth, info.put("isPreviousAdmin", isPreviousAdmin(auth)); info.put("language", ud.getLanguage()); info.put("isGoogleUser", ud.isGoogleUser()); + info.put("expiresIn", appProperties.getProperty("server.servlet.session.timeout")); if (user.isStudent()) { info.put("role", "student");