Skip to content

Commit e3526b9

Browse files
committed
check for existing user before storing Cookies
1 parent 3ad5411 commit e3526b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/main/java/de/unirostock/sems/cbarchive/web

src/main/java/de/unirostock/sems/cbarchive/web/Tools.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ public static UserManager getUser (CookieManager cookies) throws IOException
123123
// parse vCard info
124124
if( userInfo != null && !userInfo.getValue().isEmpty() )
125125
user.setData( UserData.fromJson( userInfo.getValue() ) );
126+
127+
storeUserCookies(cookies, user);
126128
}
127129

128-
storeUserCookies(cookies, user);
129-
130130
return user;
131131
}
132132

0 commit comments

Comments
 (0)