diff --git a/client/me/reauth-required/index.jsx b/client/me/reauth-required/index.jsx index ceb1dfb250710d..e1fa506290eae7 100644 --- a/client/me/reauth-required/index.jsx +++ b/client/me/reauth-required/index.jsx @@ -97,6 +97,10 @@ module.exports = React.createClass( { } ); }, + preValidateAuthCode: function() { + return this.state.code.length && this.state.code.length > 5; + }, + renderSendSMSButton: function() { var button; if ( this.props.twoStepAuthorization.isTwoStepSMSEnabled() ) { @@ -148,14 +152,21 @@ module.exports = React.createClass( { }, render: function() { - var codePlaceholder = '123456'; + var codePlaceholder = this.translate( 'e.g. 123456', { + context: '6 digit two factor code placeholder.', + textOnly: true + } ); if ( this.props.twoStepAuthorization.isTwoStepSMSEnabled() ) { - codePlaceholder = '1234567'; + codePlaceholder = this.translate( 'e.g. 1234567', { + context: '7 digit two factor code placeholder.', + textOnly: true + } ); } return ( { this.translate( 'Verification Code' ) } { this.renderFailedValidationMsg() } @@ -201,7 +214,10 @@ module.exports = React.createClass( { { this.renderSMSResendThrottled() } - + { this.translate( 'Verify' ) }