test
This commit is contained in:
@@ -14,13 +14,15 @@ public class UserProfil {
|
||||
private String ville;
|
||||
private String password;
|
||||
private String confirmPassword;
|
||||
private String currentPassword;
|
||||
private String newPassword;
|
||||
private float credit;
|
||||
private boolean isAdmin;
|
||||
|
||||
//Constructeur
|
||||
public UserProfil(){}
|
||||
|
||||
public UserProfil(int id, String pseudo, String nom, String prenom, String email, String telephone, String rue, String code_postal, String ville, String password, String confirmPassword, int credit, boolean isAdmin) {
|
||||
public UserProfil(int id, String pseudo, String nom, String prenom, String email, String telephone, String rue, String code_postal, String ville, String password, String confirmPassword, String newPassword, String currentPassword, int credit, boolean isAdmin) {
|
||||
setId(id);
|
||||
setPrenom(prenom);
|
||||
setNom(nom);
|
||||
@@ -34,6 +36,8 @@ public class UserProfil {
|
||||
setConfirmPassword(confirmPassword);
|
||||
setCredit(credit);
|
||||
setAdmin(isAdmin);
|
||||
setCurrentPassword(currentPassword);
|
||||
setNewPassword(newPassword);
|
||||
}
|
||||
|
||||
//Méthode getter et setter
|
||||
@@ -141,4 +145,19 @@ public class UserProfil {
|
||||
isAdmin = admin;
|
||||
}
|
||||
|
||||
public String getCurrentPassword() {
|
||||
return currentPassword;
|
||||
}
|
||||
|
||||
public void setCurrentPassword(String currentPassword) {
|
||||
this.currentPassword = currentPassword;
|
||||
}
|
||||
|
||||
public String getNewPassword() {
|
||||
return newPassword;
|
||||
}
|
||||
|
||||
public void setNewPassword(String newPassword) {
|
||||
this.newPassword = newPassword;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user