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:
Mrugesh Mohapatra
2016-05-07 17:46:39 +05:30
parent bbacbd3d81
commit ff4dfb09da
8 changed files with 135 additions and 64 deletions

View File

@@ -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);