Commit be41d004 authored by Ray Schamp's avatar Ray Schamp

Show password by default

parent 3335207c
......@@ -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) {
......
......@@ -117,6 +117,7 @@ var StudentCompleteRegistration = intl.injectIntl(React.createClass({
waiting={this.state.waiting} />
{this.props.session.session.flags.must_reset_password ?
<Steps.ChoosePasswordStep onNextStep={this.advanceStep}
showPassword={true}
waiting={this.state.waiting} />
:
[]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment