account: Add the ability to create an account without any password
Modify the accountcreationwizard and the accountimportexportview to
enable account with no password set.
Change-Id: Id2304f363d0eea8f19d607dedb71f80dea005d8f
diff --git a/src/accountcreationwizard.cpp b/src/accountcreationwizard.cpp
index efaf806..24d8e3f 100644
--- a/src/accountcreationwizard.cpp
+++ b/src/accountcreationwizard.cpp
@@ -542,7 +542,7 @@
gtk_widget_set_sensitive(
priv->button_existing_account_step2_next,
- (strlen(pin) > 0 && strlen(password) > 0)
+ (strlen(pin) > 0)
);
}
@@ -559,8 +559,6 @@
if (
strlen(display_name) > 0 && // Display name is longer than 0
- strlen(password) > 0 && // Password is longer than 0
- strlen(password_confirm) > 0 && // Confirmation is also longer than 0
(
(sign_up_blockchain && strlen(username) > 0 && priv->username_available) || // we are signing up, username is set and avaialble
!sign_up_blockchain // We are not signing up