Add email verification and notifications
This commit - [x] Fixes the flash notice color (Trivial) - [x] Adds flash message for user with no email. - [x] Adds checks to see if user's email is verified, and displays corresponding notification. - [x] Adds email templates.
This commit is contained in:
@@ -18,7 +18,8 @@ import {
|
||||
import { observeMethod } from '../utils/rx';
|
||||
|
||||
import {
|
||||
ifNoUserSend
|
||||
ifNoUserSend,
|
||||
flashIfNotVerified
|
||||
} from '../utils/middleware';
|
||||
|
||||
import getFromDisk$ from '../utils/getFromDisk$';
|
||||
@@ -419,7 +420,10 @@ module.exports = function(app) {
|
||||
redirectToNextChallenge
|
||||
);
|
||||
|
||||
router.get('/challenges/:challengeName', showChallenge);
|
||||
router.get('/challenges/:challengeName',
|
||||
flashIfNotVerified,
|
||||
showChallenge
|
||||
);
|
||||
|
||||
app.use(router);
|
||||
|
||||
|
Reference in New Issue
Block a user