-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the methods for invitation in the Registration Service
Removed testing componets; Added "invitePatient" method in Registration Modified RegistrationInterface, added needed method
- Loading branch information
ms@Nicro
authored and
ms@Nicro
committed
Dec 26, 2023
1 parent
95403c1
commit e18da5f
Showing
8 changed files
with
38 additions
and
78 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ public class Authenticator implements LoginInterface { | |
DAOUser db = new DAOUser(); | ||
@Override | ||
public String resetPassword(String email) { | ||
if(email.equals("[email protected]")) { | ||
if(email.equals("[email protected]")) { //TODO: Rimuovere rimasuglio di Testing | ||
return "12345678"; | ||
} | ||
else { | ||
|
@@ -27,10 +27,10 @@ public String resetPassword(String email) { | |
|
||
public boolean resetPassword(String email, String plainTextPassword){ | ||
Encryption encryption = new Encryption(); | ||
System.out.println("password in chiaro: " + plainTextPassword); | ||
System.out.println("password in chiaro: " + plainTextPassword); //TODO: Rimuovere rimasuglio di Testing | ||
String hashed = encryption.encryptPassword(plainTextPassword); | ||
boolean Result = db.resetPassword(email,hashed); | ||
System.out.println("cambiato password, esito:" + Result); | ||
System.out.println("cambiato password, esito:" + Result); //TODO: Rimuovere rimasuglio di Testing | ||
return Result; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.