FIX:: checkstyle error button and missing javadoc
This commit is contained in:
@@ -177,7 +177,7 @@ public class RegisterWindowController {
|
||||
TimeUnit.MILLISECONDS.sleep(300);
|
||||
addSlideAnimation(1100, passwordField2, -420);
|
||||
|
||||
signUpButton.setSkin(new registerButtonSkin(signUpButton));
|
||||
signUpButton.setSkin(new RegisterButtonSkin(signUpButton));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -621,12 +621,12 @@ public class RegisterWindowController {
|
||||
}
|
||||
|
||||
@SuppressWarnings("Duplicates")
|
||||
public class registerButtonSkin extends ButtonSkin {
|
||||
public class RegisterButtonSkin extends ButtonSkin {
|
||||
/**
|
||||
* registers button skins.
|
||||
* @param button clicking
|
||||
*/
|
||||
public registerButtonSkin(Button button) {
|
||||
public RegisterButtonSkin(Button button) {
|
||||
super(button);
|
||||
|
||||
ScaleTransition scaleUp = new ScaleTransition(Duration.millis(140));
|
||||
|
||||
@@ -371,6 +371,12 @@ public class UserService {
|
||||
.encode().toUri(), String.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Hashes the password of a user.
|
||||
* @param password password of the user
|
||||
* @return hashed password
|
||||
* @throws NoSuchAlgorithmException when there is no such algorithm
|
||||
*/
|
||||
public String hashPassword(String password)
|
||||
throws NoSuchAlgorithmException {
|
||||
MessageDigest digest = MessageDigest.getInstance("SHA-256");
|
||||
|
||||
Reference in New Issue
Block a user