Add ability to require e-mail verification
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is failing

This commit is contained in:
2021-05-04 11:28:55 -05:00
parent f45e92af1e
commit 62c818dc8d
11 changed files with 189 additions and 5 deletions

View File

@@ -15,6 +15,7 @@ const jobs_config = {
'mailer',
'password_resets',
'notifications',
'verifications',
],
// Mapping of worker name => worker config
@@ -23,7 +24,7 @@ const jobs_config = {
// The name of the worker is "main"
main: {
// This worker will process these queues
queues: ['mailer', 'password_resets', 'notifications'],
queues: ['mailer', 'password_resets', 'notifications', 'verifications'],
},
// You can have many workers, and multiple workers can

View File

@@ -1,6 +1,7 @@
const setting_config = {
settings: {
'auth.allow_registration': true,
'auth.require_email_verify': false,
'auth.default_roles': [ 'base_user' ],
'home.allow_landing': true,
'home.redirect_authenticated': true,

View File

@@ -41,6 +41,22 @@ const traps_config = {
'/api/v1/vault/get-trust-payload',
],
},
verify_email: {
redirect_to: '/auth/verify-email',
allowed_routes: [
'/auth/verify-email',
'/auth/verify-email/sent',
'/auth/logout',
'/auth/login',
'/api/v1/locale/batch',
'/api/v1/auth/validate/username',
'/api/v1/auth/attempt',
'/api/v1/vault/get-trust-payload',
'/auth/action/*',
'/api/v1/message/banners',
'/api/v1/message/banners/read/*',
],
},
},
}