mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 00:37:51 +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:
parent
99cf7610c0
commit
12f93976d0
@ -271,7 +271,7 @@ def get_passwords(args):
|
|||||||
mysql_root_password = getpass.unix_getpass(prompt='Please enter mysql root password: ')
|
mysql_root_password = getpass.unix_getpass(prompt='Please enter mysql root password: ')
|
||||||
conf_mysql_passwd = getpass.unix_getpass(prompt='Re-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 = ''
|
mysql_root_password = ''
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@ -280,7 +280,7 @@ def get_passwords(args):
|
|||||||
admin_password = getpass.unix_getpass(prompt='Please enter the default Administrator user password: ')
|
admin_password = getpass.unix_getpass(prompt='Please enter the default Administrator user password: ')
|
||||||
conf_admin_passswd = getpass.unix_getpass(prompt='Re-enter Administrator 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 = ''
|
admin_password = ''
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user