diff options
Diffstat (limited to 'webapp/components/admin_console/password_settings.jsx')
-rw-r--r-- | webapp/components/admin_console/password_settings.jsx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/webapp/components/admin_console/password_settings.jsx b/webapp/components/admin_console/password_settings.jsx index edb9669e1..68506fcfe 100644 --- a/webapp/components/admin_console/password_settings.jsx +++ b/webapp/components/admin_console/password_settings.jsx @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. +// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import React from 'react'; @@ -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 }} /> ); |