2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 08:30:39 +00:00

Blank password not accepted

Stopped accepting blank passwords for MySQL password and Administrator password
in the install script
This commit is contained in:
Ameya Shenoy 2018-04-09 15:41:01 +05:30
parent 99cf7610c0
commit 12f93976d0
No known key found for this signature in database
GPG Key ID: 735490161CD5C91E

View File

@ -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