Add traps; user registration
This commit is contained in:
@@ -24,12 +24,14 @@ const index = {
|
||||
|
||||
get: {
|
||||
'/:provider/register': [
|
||||
['middleware::util:Setting', { key: 'auth.allow_registration' }],
|
||||
'middleware::auth:ProviderRoute',
|
||||
'middleware::auth:GuestOnly',
|
||||
'middleware::auth:ProviderRegistrationEnabled',
|
||||
'controller::auth:Forms.registration_provider_get',
|
||||
],
|
||||
'/register': [
|
||||
['middleware::util:Setting', { key: 'auth.allow_registration' }],
|
||||
'middleware::auth:ProviderRoute',
|
||||
'middleware::auth:GuestOnly',
|
||||
'middleware::auth:ProviderRegistrationEnabled',
|
||||
@@ -67,7 +69,8 @@ const index = {
|
||||
},
|
||||
|
||||
post: {
|
||||
'/:provider/register': [
|
||||
/*'/:provider/register': [
|
||||
['middleware::util:Setting', { key: 'auth.allow_registration' }],
|
||||
'middleware::auth:ProviderRoute',
|
||||
'middleware::auth:GuestOnly',
|
||||
'middleware::auth:ProviderRegistrationEnabled',
|
||||
@@ -75,12 +78,13 @@ const index = {
|
||||
'controller::auth:Forms.registration_provider_present_user_created',
|
||||
],
|
||||
'/register': [
|
||||
['middleware::util:Setting', { key: 'auth.allow_registration' }],
|
||||
'middleware::auth:ProviderRoute',
|
||||
'middleware::auth:GuestOnly',
|
||||
'middleware::auth:ProviderRegistrationEnabled',
|
||||
'controller::auth:Forms.registration_provider_create_user',
|
||||
'controller::auth:Forms.registration_provider_present_user_created',
|
||||
],
|
||||
],*/
|
||||
|
||||
'/:provider/login': [
|
||||
'middleware::auth:ProviderRoute',
|
||||
|
||||
Reference in New Issue
Block a user