Skip to content

Commit

Permalink
Fix MemberProfileValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisDebonnet committed Feb 23, 2018
1 parent acb4a36 commit 2cf1515
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Forms/MemberProfileValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function php($data) {
if($validator = $member::password_validator()) {
$results = $validator->validate($data['Password'], $member);

if(!$results->valid()) {
if(!$results->isValid()) {
$valid = false;
foreach($results->messageList() as $key => $value) {
$this->validationError('Password', $value, 'required');
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/MemberProfilePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class MemberProfilePage extends Page implements PermissionProvider {
'AllowProfileViewing' => true,
'AllowProfileEditing' => true,
'ConfirmationTitle' => 'Account Confirmed',
'ConfirmationContent' => '<p>Your account is now active, and you have been logged in. Thankyou!</p>'
'ConfirmationContent' => '<p>Your account is now active, and you have been logged in. Thank you!</p>'
);

private static $table_name = 'MemberProfilePage';
Expand Down

0 comments on commit 2cf1515

Please sign in to comment.