diff --git a/app/constants/settings.js b/app/constants/settings.js index cf28f6364..d602f290e 100644 --- a/app/constants/settings.js +++ b/app/constants/settings.js @@ -11,6 +11,9 @@ export default { Accounts_PasswordPlaceholder: { type: 'valueAsString' }, + Accounts_PasswordReset: { + type: 'valueAsBoolean' + }, CROWD_Enable: { type: 'valueAsBoolean' }, diff --git a/app/views/LoginView.js b/app/views/LoginView.js index 1b38fc9dd..f6cf54731 100644 --- a/app/views/LoginView.js +++ b/app/views/LoginView.js @@ -57,10 +57,15 @@ class LoginView extends React.Component { Site_Name: PropTypes.string, Accounts_EmailOrUsernamePlaceholder: PropTypes.string, Accounts_PasswordPlaceholder: PropTypes.string, + Accounts_PasswordReset: PropTypes.bool, isFetching: PropTypes.bool, failure: PropTypes.bool } + static defaultProps = { + Accounts_PasswordReset: true + } + constructor(props) { super(props); this.state = { @@ -195,7 +200,7 @@ class LoginView extends React.Component { renderUserForm = () => { const { - Accounts_EmailOrUsernamePlaceholder, Accounts_PasswordPlaceholder, isFetching + Accounts_EmailOrUsernamePlaceholder, Accounts_PasswordPlaceholder, Accounts_PasswordReset, isFetching } = this.props; return ( @@ -229,12 +234,14 @@ class LoginView extends React.Component { loading={isFetching} disabled={!this.valid()} /> -