Closed qingyuan-wu closed 2 years ago
Add new table email_verification
that stores the uuid
required to verify new users.
DROP TABLE IF EXISTS `email_verification`;
CREATE TABLE `email_verification` (
`email` VARCHAR(200) NOT NULL,
`first-name` text NOT NULL,
`last-name` text NOT NULL,
`uuid` text NOT NULL,
PRIMARY KEY (`email`)
);
I have added the middleware for email verification. This middleware is triggered whenever the user attempts to access the new post page (GET), post a new post (POST), or edit their profile (POST). The user is still able to get their profile, but they will be prompted to verify their email instead of editing it.
Qingyuan
Hi Qingyuan,
Thank you for making the requested changes and for your work in driving this feature. I will merge this branch and close this PR.
Best, Harsimrat
Modify logins schema that contains info regarding whether the user is "verified":