{this.props.t('LoginView.Login')}
{this.props.t('LoginView.LoginOr')}
{this.props.t('LoginView.DontHaveAccount')} {this.props.t('LoginView.SignUp')}
{this.props.t('LoginView.ForgotPassword')} {this.props.t('LoginView.ResetPassword')}
import PropTypes from 'prop-types'; import React from 'react'; import { reduxForm } from 'redux-form'; import { Link, browserHistory } from 'react-router'; import { Helmet } from 'react-helmet'; import { withTranslation } from 'react-i18next'; import i18n from 'i18next'; import { validateAndLoginUser } from '../actions'; import LoginForm from '../components/LoginForm'; import { validateLogin } from '../../../utils/reduxFormUtils'; import SocialAuthButton from '../components/SocialAuthButton'; import Nav from '../../../components/Nav'; import ResponsiveForm from '../components/ResponsiveForm'; class LoginView extends React.Component { constructor(props) { super(props); this.closeLoginPage = this.closeLoginPage.bind(this); this.gotoHomePage = this.gotoHomePage.bind(this); } closeLoginPage() { browserHistory.push(this.props.previousPath); } gotoHomePage() { browserHistory.push('/'); } render() { if (this.props.user.authenticated) { this.gotoHomePage(); return null; } return (
{this.props.t('LoginView.DontHaveAccount')} {this.props.t('LoginView.SignUp')}
{this.props.t('LoginView.ForgotPassword')} {this.props.t('LoginView.ResetPassword')}