yann-yinn / adonis-starter

A Node.js / TypeScript / Postgres starter with ready-to-use users management (register, login, forgot password etc) to focus on building your new ideas. Built upon the excellent AdonisJS MVC Framework.
71 stars 15 forks source link

User blocked until email is verified #8

Closed yann-yinn closed 3 years ago

yann-yinn commented 3 years ago

config/starter.ts file: if blockUserUntilEmailVerification is true,

1) user should not be able to login

2) A flash message is displayed :

const message = "You must confirm your email, check your inbox. Click here to resend an email verification for your account".
session.flash({notification: message})

3) on click, a page with a form offers him to re-enter its email and resend verification link.

yann-yinn commented 3 years ago

done by @Yoann-TYT , great job !