summaryrefslogtreecommitdiff
path: root/web-ui/src/account_recovery/user_recovery_code_form/user_recovery_code_form.js
diff options
context:
space:
mode:
authorTulio Casagrande <tuliocasagrande@gmail.com>2017-04-04 13:14:34 -0300
committerGitHub <noreply@github.com>2017-04-04 13:14:34 -0300
commitf70c2827d41d1d805d6446670b861b7abf0761b1 (patch)
treedf266fda0c593a27c568215716d48d9994fbd344 /web-ui/src/account_recovery/user_recovery_code_form/user_recovery_code_form.js
parentaf454c71da106644eee644c4286bbae4788b8e14 (diff)
parentd7914b9b5640c3d85c6230a032180b2e64520bca (diff)
Merge pull request #1042 from pixelated/login-recovery-code
[#935] Sends user recovery code and password to account recovery endpoint
Diffstat (limited to 'web-ui/src/account_recovery/user_recovery_code_form/user_recovery_code_form.js')
-rw-r--r--web-ui/src/account_recovery/user_recovery_code_form/user_recovery_code_form.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/web-ui/src/account_recovery/user_recovery_code_form/user_recovery_code_form.js b/web-ui/src/account_recovery/user_recovery_code_form/user_recovery_code_form.js
index a4119885..c39c894d 100644
--- a/web-ui/src/account_recovery/user_recovery_code_form/user_recovery_code_form.js
+++ b/web-ui/src/account_recovery/user_recovery_code_form/user_recovery_code_form.js
@@ -24,7 +24,7 @@ import BackLink from 'src/common/back_link/back_link';
import './user_recovery_code_form.scss';
-export const UserRecoveryCodeForm = ({ t, previous, next }) => (
+export const UserRecoveryCodeForm = ({ t, previous, next, saveCode }) => (
<form className='account-recovery-form user-code' onSubmit={next}>
<img
className='account-recovery-progress'
@@ -40,7 +40,10 @@ export const UserRecoveryCodeForm = ({ t, previous, next }) => (
/>
<p>{t('account-recovery.user-form.description')}</p>
</div>
- <InputField name='admin-code' label={t('account-recovery.user-form.input-label')} />
+ <InputField
+ name='user-code' label={t('account-recovery.user-form.input-label')}
+ onChange={saveCode}
+ />
<SubmitButton buttonText={t('account-recovery.button-next')} />
<BackLink text={t('account-recovery.back')} onClick={previous} />
</form>
@@ -49,7 +52,8 @@ export const UserRecoveryCodeForm = ({ t, previous, next }) => (
UserRecoveryCodeForm.propTypes = {
t: React.PropTypes.func.isRequired,
previous: React.PropTypes.func.isRequired,
- next: React.PropTypes.func.isRequired
+ next: React.PropTypes.func.isRequired,
+ saveCode: React.PropTypes.func.isRequired
};
export default translate('', { wait: true })(UserRecoveryCodeForm);