import React from 'react'; import { defineMessages, 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'; // TODO: activation code field may be decoupled into common component and reused here and in activation panel const placeholders = defineMessages({ newPassword: 'Enter new password', newRePassword: 'Repeat new password', enterTheCode: 'Enter confirmation code', }); 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 (
{user.maskedEmail ? (