From 75c63d81c359c880b637058596be889c68654871 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 5 Jan 2018 16:22:24 -0500 Subject: [PATCH] Don't send out emails to admins for password errors. --- application/common/models/Password.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/common/models/Password.php b/application/common/models/Password.php index 6b2405ce..5768619a 100644 --- a/application/common/models/Password.php +++ b/application/common/models/Password.php @@ -166,7 +166,7 @@ public function save() if ( ! $this->validate()) { $errors = join(', ', $this->getErrors('password')); - \Yii::error([ + \Yii::warning([ 'action' => 'save password', 'status' => 'error', 'employee_id' => $this->employeeId, @@ -186,7 +186,7 @@ public function save() if ( ! $this->validate()) { $errors = $this->getFirstErrors(); $log['status'] = 'error'; - $log['error'] = Json::encode($errors); + $log['error'] = $errors; \Yii::error($log); throw new BadRequestHttpException($errors[0], 1463164336); }