From be41d004adab4fbec9acb1e2fec8efb55a2ca5eb Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Thu, 21 Jul 2016 21:07:02 -0400 Subject: [PATCH] Show password by default --- src/components/registration/steps.jsx | 6 ++++-- .../studentcompleteregistration.jsx | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/registration/steps.jsx b/src/components/registration/steps.jsx index cdb13b3ce..af5b9d946 100644 --- a/src/components/registration/steps.jsx +++ b/src/components/registration/steps.jsx @@ -51,12 +51,13 @@ module.exports = { UsernameStep: intl.injectIntl(React.createClass({ getDefaultProps: function () { return { + showPassword: false, waiting: false }; }, getInitialState: function () { return { - showPassword: false, + showPassword: this.props.showPassword, waiting: false, validUsername: '' }; @@ -188,12 +189,13 @@ module.exports = { ChoosePasswordStep: intl.injectIntl(React.createClass({ getDefaultProps: function () { return { + showPassword: false, waiting: false }; }, getInitialState: function () { return { - showPassword: false + showPassword: this.props.showPassword }; }, onChangeShowPassword: function (field, value) { diff --git a/src/views/studentcompleteregistration/studentcompleteregistration.jsx b/src/views/studentcompleteregistration/studentcompleteregistration.jsx index 681ce4e19..baf249bbc 100644 --- a/src/views/studentcompleteregistration/studentcompleteregistration.jsx +++ b/src/views/studentcompleteregistration/studentcompleteregistration.jsx @@ -117,6 +117,7 @@ var StudentCompleteRegistration = intl.injectIntl(React.createClass({ waiting={this.state.waiting} /> {this.props.session.session.flags.must_reset_password ? : []