From 70883b76fd101fbb694fd9ab078ee5f23ed42623 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Fri, 15 Jul 2016 14:40:54 +0800 Subject: [PATCH] MDL-55206 admin: Remove div tags in password policy error message --- admin/cli/reset_password.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/cli/reset_password.php b/admin/cli/reset_password.php index d7b4f74ed08..8d8093ea5dd 100644 --- a/admin/cli/reset_password.php +++ b/admin/cli/reset_password.php @@ -69,7 +69,7 @@ $password = cli_input($prompt); $errmsg = '';//prevent eclipse warning if (!check_password_policy($password, $errmsg)) { - cli_error($errmsg); + cli_error(html_to_text($errmsg, 0)); } $hashedpassword = hash_internal_user_password($password); @@ -78,4 +78,4 @@ $DB->set_field('user', 'password', $hashedpassword, array('id'=>$user->id)); echo "Password changed\n"; -exit(0); // 0 means success \ No newline at end of file +exit(0); // 0 means success.