Finished functionally complete email confirmation workflow
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import React, { Component } from "react";
|
||||
import { connect } from "react-redux";
|
||||
import { Container, Form, Header, Message } from "semantic-ui-react";
|
||||
import { Container, Form, Header, Message } from "semantic-ui-react";
|
||||
|
||||
import {
|
||||
clearAuthRequestError,
|
||||
clearAuthRequestSuccess,
|
||||
setFormEmail,
|
||||
setFormPassword,
|
||||
setFormPasswordConfirmation
|
||||
@@ -15,6 +16,7 @@ class Register extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.props.dispatch(clearAuthRequestError());
|
||||
this.props.dispatch(clearAuthRequestSuccess());
|
||||
}
|
||||
|
||||
changeEmail = event => {
|
||||
@@ -122,12 +124,11 @@ const RegisterView = ({
|
||||
/>
|
||||
</Form.Field>
|
||||
<Error header="Register failed!" error={authRequestError} />
|
||||
<Message
|
||||
success
|
||||
header="Registration Sent"
|
||||
content="A confirmation email has been sent to confirm your registration."
|
||||
/>
|
||||
<Form.Button>Submit</Form.Button>
|
||||
<Message success>
|
||||
<Message.Header>Confirmation Email Sent!</Message.Header>
|
||||
<p>Please check your email to confirm your registration.</p>
|
||||
</Message>
|
||||
<Form.Button>Register</Form.Button>
|
||||
</Form>
|
||||
</Container>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user