From 12f93976d0c08c234f6a873ca7d4caa320126f03 Mon Sep 17 00:00:00 2001 From: Ameya Shenoy Date: Mon, 9 Apr 2018 15:41:01 +0530 Subject: [PATCH] Blank password not accepted Stopped accepting blank passwords for MySQL password and Administrator password in the install script --- playbooks/install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/install.py b/playbooks/install.py index cd7026eb..150abba9 100644 --- a/playbooks/install.py +++ b/playbooks/install.py @@ -271,7 +271,7 @@ def get_passwords(args): mysql_root_password = getpass.unix_getpass(prompt='Please enter mysql root password: ') conf_mysql_passwd = getpass.unix_getpass(prompt='Re-enter mysql root password: ') - if mysql_root_password != conf_mysql_passwd: + if mysql_root_password != conf_mysql_passwd or mysql_root_password == '': mysql_root_password = '' continue @@ -280,7 +280,7 @@ def get_passwords(args): admin_password = getpass.unix_getpass(prompt='Please enter the default Administrator user password: ') conf_admin_passswd = getpass.unix_getpass(prompt='Re-enter Administrator password: ') - if admin_password != conf_admin_passswd: + if admin_password != conf_admin_passswd or admin_password == '': admin_password = '' continue