mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
Show password by default
This commit is contained in:
parent
3335207c54
commit
be41d004ad
2 changed files with 5 additions and 2 deletions
|
@ -51,12 +51,13 @@ module.exports = {
|
||||||
UsernameStep: intl.injectIntl(React.createClass({
|
UsernameStep: intl.injectIntl(React.createClass({
|
||||||
getDefaultProps: function () {
|
getDefaultProps: function () {
|
||||||
return {
|
return {
|
||||||
|
showPassword: false,
|
||||||
waiting: false
|
waiting: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
getInitialState: function () {
|
getInitialState: function () {
|
||||||
return {
|
return {
|
||||||
showPassword: false,
|
showPassword: this.props.showPassword,
|
||||||
waiting: false,
|
waiting: false,
|
||||||
validUsername: ''
|
validUsername: ''
|
||||||
};
|
};
|
||||||
|
@ -188,12 +189,13 @@ module.exports = {
|
||||||
ChoosePasswordStep: intl.injectIntl(React.createClass({
|
ChoosePasswordStep: intl.injectIntl(React.createClass({
|
||||||
getDefaultProps: function () {
|
getDefaultProps: function () {
|
||||||
return {
|
return {
|
||||||
|
showPassword: false,
|
||||||
waiting: false
|
waiting: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
getInitialState: function () {
|
getInitialState: function () {
|
||||||
return {
|
return {
|
||||||
showPassword: false
|
showPassword: this.props.showPassword
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onChangeShowPassword: function (field, value) {
|
onChangeShowPassword: function (field, value) {
|
||||||
|
|
|
@ -117,6 +117,7 @@ var StudentCompleteRegistration = intl.injectIntl(React.createClass({
|
||||||
waiting={this.state.waiting} />
|
waiting={this.state.waiting} />
|
||||||
{this.props.session.session.flags.must_reset_password ?
|
{this.props.session.session.flags.must_reset_password ?
|
||||||
<Steps.ChoosePasswordStep onNextStep={this.advanceStep}
|
<Steps.ChoosePasswordStep onNextStep={this.advanceStep}
|
||||||
|
showPassword={true}
|
||||||
waiting={this.state.waiting} />
|
waiting={this.state.waiting} />
|
||||||
:
|
:
|
||||||
[]
|
[]
|
||||||
|
|
Loading…
Reference in a new issue