import PropTypes from 'prop-types'; import React from 'react'; import { reduxForm } from 'redux-form'; import classNames from 'classnames'; import { browserHistory } from 'react-router'; import InlineSVG from 'react-inlinesvg'; import { bindActionCreators } from 'redux'; import { Helmet } from 'react-helmet'; import NewPasswordForm from '../components/NewPasswordForm'; import * as UserActions from '../actions'; const exitUrl = require('../../../images/exit.svg'); const logoUrl = require('../../../images/p5js-logo.svg'); class NewPasswordView extends React.Component { constructor(props) { super(props); this.gotoHomePage = this.gotoHomePage.bind(this); } componentDidMount() { // need to check if this is a valid token this.props.validateResetPasswordToken(this.props.params.reset_password_token); } gotoHomePage() { browserHistory.push('/'); } render() { const newPasswordClass = classNames({ 'new-password': true, 'new-password--invalid': this.props.user.resetPasswordInvalid, 'form-container': true }); return (
The password reset token is invalid or has expired.