MDL-55206 admin: Remove div tags in password policy error message
authorJun Pataleta <jun@moodle.com>
Fri, 15 Jul 2016 06:40:54 +0000 (14:40 +0800)
committerJun Pataleta <jun@moodle.com>
Fri, 15 Jul 2016 06:40:54 +0000 (14:40 +0800)
admin/cli/reset_password.php

index a1535d1..7c2eef5 100644 (file)
@@ -95,7 +95,7 @@ if ($options['password'] == '' ) {
 $errmsg = '';//prevent eclipse warning
 if (!$options['ignore-password-policy'] ) {
     if (!check_password_policy($password, $errmsg)) {
-        cli_error($errmsg);
+        cli_error(html_to_text($errmsg, 0));
     }
 }