Skip to content

Commit

Permalink
Merge pull request #101 from silinternational/develop
Browse files Browse the repository at this point in the history
Release 2.1.4
  • Loading branch information
fillup authored Jan 9, 2018
2 parents 4de5ee0 + 3296ecf commit 7ecd510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/common/models/Password.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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);
}
Expand Down

0 comments on commit 7ecd510

Please sign in to comment.