mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Update error message when password is too long (#6001)
This commit is contained in:
committed by
Joram Wilander
parent
d8d0716122
commit
c7f26bb110
@@ -53,9 +53,10 @@ export default class PasswordSettings extends AdminSettings {
|
||||
this.sampleErrorMsg = (
|
||||
<FormattedMessage
|
||||
id={sampleErrorMsgId}
|
||||
default='Your password must be at least {min} characters.'
|
||||
default='Your password must contain between {min} and {max} characters.'
|
||||
values={{
|
||||
min: (this.state.passwordMinimumLength || Constants.MIN_PASSWORD_LENGTH)
|
||||
min: (this.state.passwordMinimumLength || Constants.MIN_PASSWORD_LENGTH),
|
||||
max: Constants.MAX_PASSWORD_LENGTH
|
||||
}}
|
||||
/>
|
||||
);
|
||||
@@ -115,9 +116,10 @@ export default class PasswordSettings extends AdminSettings {
|
||||
return (
|
||||
<FormattedMessage
|
||||
id={sampleErrorMsgId}
|
||||
default='Your password must be at least {min} characters.'
|
||||
default='Your password must contain between {min} and {max} characters.'
|
||||
values={{
|
||||
min: (minLength || Constants.MIN_PASSWORD_LENGTH)
|
||||
min: (minLength || Constants.MIN_PASSWORD_LENGTH),
|
||||
max: Constants.MAX_PASSWORD_LENGTH
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user