38 lines
1009 B
TypeScript
Raw Normal View History

2017-08-22 21:39:08 +03:00
import React from 'react';
import { FormattedMessage as Message } from 'react-intl';
import { PanelIcon } from 'app/components/ui/Panel';
import { Input } from 'app/components/ui/form';
import BaseAuthBody from 'app/components/auth/BaseAuthBody';
2017-08-22 21:39:08 +03:00
import styles from './mfa.scss';
import messages from './Mfa.intl.json';
export default class MfaBody extends BaseAuthBody {
2020-05-24 02:08:24 +03:00
static panelId = 'mfa';
static hasGoBack = true;
2020-05-24 02:08:24 +03:00
autoFocusField = 'totp';
2020-05-24 02:08:24 +03:00
render() {
return (
<div>
{this.renderErrors()}
2020-05-24 02:08:24 +03:00
<PanelIcon icon="lock" />
2020-05-24 02:08:24 +03:00
<p className={styles.descriptionText}>
<Message {...messages.description} />
</p>
2020-05-24 02:08:24 +03:00
<Input
{...this.bindField('totp')}
icon="key"
required
placeholder={messages.enterTotp}
autoComplete="off"
/>
</div>
);
}
2017-08-22 21:39:08 +03:00
}