Skip to content

Commit

Permalink
Update on password validation (#151)
Browse files Browse the repository at this point in the history
* Update on password validation

Update on password validation when password is too short.

* Added isset to avoid error.
  • Loading branch information
mmativ authored and Nathan committed Jan 25, 2019
1 parent 8ab58ab commit 78afc58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Forms/MemberProfileValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ public function php($data)

if (!$results->isValid()) {
$valid = false;
foreach ($results->messageList() as $key => $value) {
$this->validationError('Password', $value, 'required');
foreach ($results->getMessages() as $value) {
if (isset($value['message'])) {
$this->validationError('Password', $value['message'], 'required');
}
}
}
}
Expand Down

0 comments on commit 78afc58

Please sign in to comment.