diff --git a/src/main/java/CreateUser.java b/src/main/java/CreateUser.java index ff436fa..7155014 100644 --- a/src/main/java/CreateUser.java +++ b/src/main/java/CreateUser.java @@ -27,70 +27,70 @@ class CreateUser { // Constructor public CreateUser(String id, String name, String password, String birthday, String firstName, String surname) { - this.id = id; + this.id = id; this.userName = name; - this.password = hashPassword(password); - this.birthday = birthday; - this.firstName = firstName; - this.surname = surname; + this.password = hashPassword(password); + this.birthday = birthday; + this.firstName = firstName; + this.surname = surname; } // Getters and Setters public String getId() { return id; - } + } - public void setId(String id) { + public void setId(String id) { this.id = id; - } + } public String getUserName() { - return userName; + return userName; } public void setUserName(String userName) { - this.userName = userName; + this.userName = userName; } public String getPassword() { - return password; + return password; } public void setPassword(String password) { - this.password = password; + this.password = password; } public String getBirthday() { return birthday; } - public void setBirthday(String birthday) { + public void setBirthday(String birthday) { this.birthday = birthday; - } + } - public String getFirstName() { - return firstName; - } + public String getFirstName() { + return firstName; + } - public void setFirstName(String firstName) { - this.firstName = firstName; - } + public void setFirstName(String firstName) { + this.firstName = firstName; + } - public String surname() { - return surname; - } + public String surname() { + return surname; + } - public void setSurname(String surname) { - this.surname = surname; - } + public void setSurname(String surname) { + this.surname = surname; + } - public boolean isStayLoggedIn() { + public boolean isStayLoggedIn() { return stayLoggedIn; - } + } - public void setStayLoggedIn(boolean stayLoggedIn) { + public void setStayLoggedIn(boolean stayLoggedIn) { this.stayLoggedIn = stayLoggedIn; - } + } // Function to create user with validation public static CreateUser createUser(String id, String userName, String password, String birthday, String firstName, String surname) {