Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Registration should send a verification email to the User (Frontend) #29

Open
FredrikEH opened this issue Oct 28, 2024 · 1 comment
Assignees

Comments

@FredrikEH
Copy link

FredrikEH commented Oct 28, 2024

EPIC: #9

After the email and password have been validated and approved on the Sign-Up page, the user should receive a verification email to be able to proceed with the registration.

  • Send a verification email to the user when the user click Sign Up on the Register Page
// register/index.js
// function onRegister() --> check auth.js

<Button
  text="Sign up"
  onClick={() => onRegister(formData.email, formData.password)}
  classes="green width-full"
 />
  • The email should contain a verification link

  • The link should make it possible for the user to login:
    See design document: Email Verification Page

  • The user should be able to click the Resendbutton to recieve a new email.

// verification/index.js

const Verification = () => {
  const navigate = useNavigate();

  const onContinueClick = () => {
    navigate('/welcome');
  };

  return (
    <div className="bg-blue verify credentialpage">
        ...
        ...
        <div className="verify-card-buttons">
          <Button text="Resend email" classes="offwhite" /* ADD HANDLE CLICK EVENT HERE */ />
          <Button text="Continue" onClick={onContinueClick} classes="green" />
        </div>
      </div>
    </div>
  );
};

Possible resource/stackoverflow tips: Use nodemailer. NOTE! Check if it's a secure library or research other solutions.

@amos1969
Copy link

Approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

4 participants