-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,11 +23,12 @@ class ChangeEmail extends AbstractForm implements InputFilterProviderInterface | |
/** | ||
* Error messages | ||
* | ||
* @var array | ||
* @var string[] | ||
*/ | ||
protected array $messageTemplates = [ | ||
self::INVALID_PASSWORD => 'The password you entered is incorrect', | ||
self::NEW_EMAIL_NOT_DIFFERENT => 'The new email address you entered is the same as your current email address. They must be different.', | ||
self::NEW_EMAIL_NOT_DIFFERENT => 'The new email address you entered is the same as ' | ||
. 'your current email address. They must be different.', | ||
]; | ||
|
||
public function __construct(CsrfGuardInterface $guard) | ||
|
@@ -74,7 +75,8 @@ public function getInputFilterSpecification() | |
'break_chain_on_failure' => true, | ||
'options' => [ | ||
'messages' => [ | ||
EmailAddressValidator::INVALID => 'Enter an email address in the correct format, like [email protected]', | ||
EmailAddressValidator::INVALID => 'Enter an email address in the correct format, ' | ||
. 'like [email protected]', | ||
], | ||
], | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,14 @@ | |
|
||
class CreateAccount extends AbstractForm implements InputFilterProviderInterface | ||
{ | ||
const FORM_NAME = 'create_account'; | ||
public const FORM_NAME = 'create_account'; | ||
|
||
public const NEW_EMAIL_CONFLICT = 'NewEmailConflict'; | ||
|
||
/** | ||
* Error messages | ||
* | ||
* @var array | ||
* @var string[] | ||
*/ | ||
protected array $messageTemplates = [ | ||
self::NEW_EMAIL_CONFLICT => 'Sorry, there was a problem with that email address. Please try a different one', | ||
|
@@ -71,7 +71,8 @@ public function getInputFilterSpecification(): array | |
'break_chain_on_failure' => true, | ||
'options' => [ | ||
'messages' => [ | ||
NotEmpty::IS_EMPTY => 'Enter an email address in the correct format, like [email protected]', | ||
NotEmpty::IS_EMPTY => 'Enter an email address in the correct format, ' . | ||
'like [email protected]', | ||
], | ||
], | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters