diff options
author | Anton Tananaev <anton@traccar.org> | 2023-11-26 08:03:53 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-11-26 08:03:53 -0800 |
commit | 08cb38a2126e91ccde44e9f91d2ad1f149c7e6b5 (patch) | |
tree | 50e6dafa01b673711dd305debf0dd7471fcc98bc /src/main/java/org/traccar/database/OpenIdProvider.java | |
parent | a59a6d19f575d8b593085ce19458c8fff18a6360 (diff) | |
download | trackermap-server-08cb38a2126e91ccde44e9f91d2ad1f149c7e6b5.tar.gz trackermap-server-08cb38a2126e91ccde44e9f91d2ad1f149c7e6b5.tar.bz2 trackermap-server-08cb38a2126e91ccde44e9f91d2ad1f149c7e6b5.zip |
Add login result class
Diffstat (limited to 'src/main/java/org/traccar/database/OpenIdProvider.java')
-rw-r--r-- | src/main/java/org/traccar/database/OpenIdProvider.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/database/OpenIdProvider.java b/src/main/java/org/traccar/database/OpenIdProvider.java index 1f5a2f481..93297f7ab 100644 --- a/src/main/java/org/traccar/database/OpenIdProvider.java +++ b/src/main/java/org/traccar/database/OpenIdProvider.java @@ -189,7 +189,8 @@ public class OpenIdProvider { throw new GeneralSecurityException("Your OpenID Groups do not permit access to Traccar."); } - User user = loginService.login(userInfo.getEmailAddress(), userInfo.getName(), administrator); + User user = loginService.login( + userInfo.getEmailAddress(), userInfo.getName(), administrator).getUser(); request.getSession().setAttribute(SessionResource.USER_ID_KEY, user.getId()); LogAction.login(user.getId(), WebHelper.retrieveRemoteAddress(request)); |