mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
refactor(emails): more work in update email interstitial, interstitial skipping, email change on confirmation, deprecation of requireEmailConfirmation
This commit is contained in:
@@ -264,6 +264,8 @@ module.exports = function (middleware) {
|
||||
return setImmediate(next);
|
||||
}
|
||||
|
||||
console.log('middleware hit', req.session);
|
||||
|
||||
const path = req.path.startsWith('/api/') ? req.path.replace('/api', '') : req.path;
|
||||
const { allowed } = await plugins.hooks.fire('filter:middleware.registrationComplete', {
|
||||
allowed: ['/register/complete'],
|
||||
|
||||
Reference in New Issue
Block a user