Add ability to require e-mail verification
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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/*',
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user