mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-64945 Don't show master password prompt if the master password is empty
This commit is contained in:
+5
@@ -104,6 +104,11 @@ public class MasterPasswordDialog extends DialogWrapper {
|
||||
* @throws PasswordSafeException if the master password is not provided.
|
||||
*/
|
||||
public static void askPassword(Project project, MasterKeyPasswordSafe safe) throws PasswordSafeException {
|
||||
// trying empty password: people who have set up empty password, don't want to get disturbed by the prompt.
|
||||
if (safe.setMasterPassword("")) {
|
||||
return;
|
||||
}
|
||||
|
||||
String error = null;
|
||||
retries:
|
||||
for (int count = 0; count < NUMBER_OF_RETRIES; count++) {
|
||||
|
||||
Reference in New Issue
Block a user