|
@@ -14,6 +14,7 @@ import javafx.stage.Stage;
|
|
|
import org.cryptomator.common.vaults.Vault;
|
|
|
import org.cryptomator.cryptofs.CryptoFileSystemProvider;
|
|
|
import org.cryptomator.cryptolib.api.InvalidPassphraseException;
|
|
|
+import org.cryptomator.ui.common.Animations;
|
|
|
import org.cryptomator.ui.common.FxController;
|
|
|
import org.cryptomator.ui.controls.FontAwesome5IconView;
|
|
|
import org.cryptomator.ui.controls.NiceSecurePasswordField;
|
|
@@ -71,8 +72,9 @@ public class ChangePasswordController implements FxController {
|
|
|
LOG.error("IO error occured during password change. Unable to perform operation.", e);
|
|
|
e.printStackTrace();
|
|
|
} catch (InvalidPassphraseException e) {
|
|
|
- // TODO shake
|
|
|
- LOG.info("Wrong old password.");
|
|
|
+ Animations.createShakeWindowAnimation(window).play();
|
|
|
+ oldPasswordField.selectAll();
|
|
|
+ oldPasswordField.requestFocus();
|
|
|
}
|
|
|
}
|
|
|
|