Browse Source

#445 Warning message at the end

bugfixes
harshadyeola 10 years ago
parent
commit
ac04afd5a9
  1. 8
      ee/cli/plugins/site_functions.py

8
ee/cli/plugins/site_functions.py

@ -607,10 +607,6 @@ def updatewpuserpassword(self, ee_domain, ee_site_webroot):
Log.debug(self, "{0}".format(e))
raise SiteError("failed to read password input ")
if len(ee_wp_pass) < 8:
Log.warn(self, "Warning : Warning: You have provided a "
"weak password")
try:
EEShellExec.cmd_exec(self, "wp --allow-root user update {0}"
" --user_pass={1}"
@ -618,7 +614,9 @@ def updatewpuserpassword(self, ee_domain, ee_site_webroot):
except CommandExecutionError as e:
raise SiteError("wp user password update command failed")
Log.info(self, "Password updated successfully")
if len(ee_wp_pass) < 8:
Log.warn(self, "Warning: You have provided a "
"weak password")
else:
Log.error(self, "Invalid WordPress user {0} for {1}."
.format(ee_wp_user, ee_domain))

Loading…
Cancel
Save