You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer I want to be able to identify the reason for a low score using a concise string which will never change So that I can communicate the feedback to my users in way which is more consistent with my application/brand tone of voice/localisation requirements
If a consistent response code was part of the response array, this would allow developers to map this to localisation maps and create validation messages which flow in a way that better suits their application. This is different to the feedback warnings currently returned which aren't guaranteed to not change in style/content (and so can't be mapped directly without risking breaking functionality with future updates).
private $map = [
'guessable_dates' => 'Increase the complexity of your password or consider omitting dates from it.',
];
public function message()
{
return $this->map[$response['feedback']['code']];
}
The text was updated successfully, but these errors were encountered:
As a developer
I want to be able to identify the reason for a low score using a concise string which will never change
So that I can communicate the feedback to my users in way which is more consistent with my application/brand tone of voice/localisation requirements
If a consistent response code was part of the response array, this would allow developers to map this to localisation maps and create validation messages which flow in a way that better suits their application. This is different to the feedback warnings currently returned which aren't guaranteed to not change in style/content (and so can't be mapped directly without risking breaking functionality with future updates).
Example:
Which would allow mapping to languages:
Or mapping to custom messages:
The text was updated successfully, but these errors were encountered: