Skip to content
Permalink
Browse files

Override login with email from Cognito

  • Loading branch information
Falydoor committed Feb 12, 2020
1 parent e2cceba commit 69eae0a890de8401174214e8db3381e21f8e9789
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/main/java/com/mycompany/myapp/service/UserService.java
@@ -256,6 +256,8 @@ private static User getUser(Map<String, Object> details) {
user.setImageUrl((String) details.get("picture"));
}
user.setActivated(true);
// Override login with email
user.setLogin(user.getEmail());
return user;
}

0 comments on commit 69eae0a

Please sign in to comment.
You can’t perform that action at this time.