You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Backend/ai-labar/src/main/java/com/capgemini/ailabar/groups/infraestructure/adapters/out/GroupsRepositoryAdapter.java
+4
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,10 @@ public String getUserNameByUserId(Integer id) {
Copy file name to clipboardExpand all lines: Backend/ai-labar/src/main/java/com/capgemini/ailabar/groups/infraestructure/repositories/GroupsRepository.java
Copy file name to clipboardExpand all lines: Backend/ai-labar/src/main/java/com/capgemini/ailabar/users/infraestructure/adapters/out/UsersRepositoryAdapter.java
+7-2
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,11 @@ public List<String> getAllUsers() {
45
45
returnusersRepository.getAllUsers();
46
46
}
47
47
48
+
@Override
49
+
publicUsersEntitygetUserByEmail(Stringemail) {
50
+
returnusersRepository.getUserByEmail(email);
51
+
}
52
+
48
53
@Override
49
54
publicUsersEntitygetUserByName(Stringuser) {
50
55
returnusersRepository.getUserByName(user);
@@ -71,8 +76,8 @@ public void deleteMembersByUserId(Integer userId) {
Copy file name to clipboardExpand all lines: Backend/ai-labar/src/main/java/com/capgemini/ailabar/users/infraestructure/controllers/UsersController.java
+18
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,17 @@ public ResponseEntity<SpecialResponse> login(@RequestBody UsersModel usersModel)
* 1. In this case, the password should arrive encrypted with SHA256 from the frontend. In the backend, the password will be re-encrypted in SHA256, and a token will be generated with the user's unique name, password, and ID.
0 commit comments