import React from 'react'; import { FormattedMessage as Message } from 'react-intl'; import { Input } from 'app/components/ui/form'; import BaseAuthBody from 'app/components/auth/BaseAuthBody'; import styles from './recoverPassword.scss'; import messages from './RecoverPassword.intl.json'; // TODO: activation code field may be decoupled into common component and reused here and in activation panel export default class RecoverPasswordBody extends BaseAuthBody { static displayName = 'RecoverPasswordBody'; static panelId = 'recoverPassword'; static hasGoBack = true; autoFocusField = this.props.match.params && this.props.match.params.key ? 'newPassword' : 'key'; render() { const { user } = this.context; const { key } = this.props.match.params; return (
{this.renderErrors()}

{user.maskedEmail ? ( {user.maskedEmail}, }} /> ) : ( )}{' '}

); } }