Change restrictiron for pw lenght from 50 to 500 chars

This commit is contained in:
Manfred Karrer 2017-10-11 15:17:01 -05:00
parent 5fb49b45bc
commit 5d0c2d65c3
No known key found for this signature in database
GPG key ID: 401250966A6B2C46
3 changed files with 3 additions and 3 deletions

View file

@ -1442,7 +1442,7 @@ time.seconds=seconds
password.enterPassword=Enter password:
password.confirmPassword=Confirm password:
password.tooLong=Password must be less than 50 characters.
password.tooLong=Password must be less than 500 characters.
password.deriveKey=Derive key from password
password.walletDecrypted=Wallet successfully decrypted and password protection removed.
password.wrongPw=You entered the wrong password.\n\nPlease try entering your password again, carefully checking for typos or spelling errors.

View file

@ -119,7 +119,7 @@ public class PasswordView extends ActivatableView<GridPane, Void> {
private void onApplyPassword(BusyAnimation busyAnimation, Label deriveStatusLabel) {
String password = passwordField.getText();
checkArgument(password.length() < 50, Res.get("password.tooLong"));
checkArgument(password.length() < 500, Res.get("password.tooLong"));
pwButton.setDisable(true);
deriveStatusLabel.setText(Res.get("password.deriveKey"));

View file

@ -189,7 +189,7 @@ public class WalletPasswordWindow extends Overlay<WalletPasswordWindow> {
unlockButton.setDisable(true);
unlockButton.setOnAction(e -> {
String password = passwordTextField.getText();
checkArgument(password.length() < 50, Res.get("password.tooLong"));
checkArgument(password.length() < 500, Res.get("password.tooLong"));
KeyCrypterScrypt keyCrypterScrypt = walletsManager.getKeyCrypterScrypt();
if (keyCrypterScrypt != null) {
busyAnimation.play();