From dae25eb9d10a816321b52e40815c17253c1dfcb4 Mon Sep 17 00:00:00 2001 From: Joris Debonnet Date: Fri, 23 Feb 2018 06:14:54 +0100 Subject: [PATCH] Fix MemberProfileValidator --- src/Forms/MemberProfileValidator.php | 2 +- src/Pages/MemberProfilePage.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Forms/MemberProfileValidator.php b/src/Forms/MemberProfileValidator.php index d2ecf901..7469594f 100644 --- a/src/Forms/MemberProfileValidator.php +++ b/src/Forms/MemberProfileValidator.php @@ -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'); diff --git a/src/Pages/MemberProfilePage.php b/src/Pages/MemberProfilePage.php index dcd1a925..f4419f08 100644 --- a/src/Pages/MemberProfilePage.php +++ b/src/Pages/MemberProfilePage.php @@ -89,7 +89,7 @@ class MemberProfilePage extends Page implements PermissionProvider { 'AllowProfileViewing' => true, 'AllowProfileEditing' => true, 'ConfirmationTitle' => 'Account Confirmed', - 'ConfirmationContent' => '

Your account is now active, and you have been logged in. Thankyou!

' + 'ConfirmationContent' => '

Your account is now active, and you have been logged in. Thank you!

' ); private static $table_name = 'MemberProfilePage';