Changeset 7485
- Timestamp:
- May 17, 2018, 8:50:51 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.12-stable/src/core/net/sf/basedb/core/SessionControl.java
r7452 r7485 350 350 } 351 351 352 GeoLocation getLocation( )353 { 354 if (!locationLoaded )352 GeoLocation getLocation(AuthenticationMethod authMeth) 353 { 354 if (!locationLoaded && authMeth != null && authMeth != AuthenticationMethod.INTERNAL) 355 355 { 356 356 locationLoaded = true; … … 895 895 device.setLastUsed(now); 896 896 device.setLastRemoteId(getRemoteId()); 897 GeoLocation loc = getLocation( );897 GeoLocation loc = getLocation(authUser.getAuthenticationMethod()); 898 898 if (loc == null) loc = new GeoLocation(); // To force 'null' on the location fields 899 899 device.setLocation(loc.toString()); … … 1084 1084 sessionData.setLoginComment(comment); 1085 1085 sessionData.setRemoteId(getRemoteId()); 1086 GeoLocation loc = getLocation( );1086 GeoLocation loc = getLocation(authenticationMethod); 1087 1087 if (loc != null) 1088 1088 {
Note: See TracChangeset
for help on using the changeset viewer.