This repository has been archived by the owner on May 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code refactoring to save Plain Password in XML for email notification
- Loading branch information
Fadi Asbih
committed
Mar 22, 2016
1 parent
e0287d3
commit 797eda1
Showing
7 changed files
with
54 additions
and
23 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -27,6 +27,7 @@ public class User { | |
private Role localRole; | ||
private StringProperty login; | ||
private Password password; | ||
private Password plainPassword; | ||
private StringProperty firstName; | ||
private StringProperty lastName; | ||
private StringProperty email; | ||
|
@@ -63,6 +64,8 @@ public User(String firstName, String lastName) { | |
this.gender = new SimpleStringProperty("f"); | ||
this.login = new SimpleStringProperty(""); | ||
this.password = new Password(); | ||
this.plainPassword = new Password(); | ||
plainPassword.setType("PLAIN"); | ||
this.email = new SimpleStringProperty("[email protected]"); | ||
this.matriculation = new SimpleStringProperty(""); | ||
this.timeLimitUnlimited = "1"; | ||
|
@@ -282,5 +285,14 @@ public String getAction() { | |
public String getLanguage() { | ||
return "de"; | ||
} | ||
|
||
@XmlElement(name = "Password") | ||
public Password getPlainPassword() { | ||
return plainPassword; | ||
} | ||
|
||
public void setPlainPassword(Password plainPassword) { | ||
this.plainPassword = plainPassword; | ||
} | ||
} | ||
|
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