Skip to content
Snippets Groups Projects
Commit dbfb03bf authored by Maren Schulze's avatar Maren Schulze
Browse files

- added hotfix damit Maren sich einloggen kann

parent 074b234c
No related branches found
No related tags found
No related merge requests found
Pipeline #126 failed
...@@ -118,10 +118,21 @@ public class ProjectCreationProcess { ...@@ -118,10 +118,21 @@ public class ProjectCreationProcess {
throws UserDoesNotExistInRocketChatException, RocketChatDownException { throws UserDoesNotExistInRocketChatException, RocketChatDownException {
// todo implement // todo implement
RocketChatUser isLoggedIn = iCommunication.loginUser(user); RocketChatUser isLoggedIn = null;
try {
isLoggedIn = iCommunication.loginUser(user);
gfContexts.updateUserSessionWithRocketChat(req, isLoggedIn); gfContexts.updateUserSessionWithRocketChat(req, isLoggedIn);
gfContexts.updateUserWithEmail(req, isLoggedIn); } catch(Exception e) {
return iManagement.exists(user); System.out.println("rocketchat funktioniert nicht ... mache trotzdem weiter");
} finally {
if (isLoggedIn != null) {
gfContexts.updateUserWithEmail(req, isLoggedIn);
return iManagement.exists(user);
} else {
gfContexts.updateUserWithEmail(req, user);
return iManagement.exists(user);
}
}
} }
public void deleteUser(User user) throws RocketChatDownException, UserDoesNotExistInRocketChatException { public void deleteUser(User user) throws RocketChatDownException, UserDoesNotExistInRocketChatException {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment