2021-09-06 08:52:37 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
module.exports = [
|
|
|
|
{
|
|
|
|
method: 'GET',
|
|
|
|
path: '/connect/(.*)',
|
|
|
|
handler: 'auth.connect',
|
|
|
|
config: {
|
2021-10-04 16:44:03 +02:00
|
|
|
middlewares: ['plugin::users-permissions.rateLimit'],
|
2021-09-06 08:52:37 +02:00
|
|
|
prefix: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
method: 'POST',
|
|
|
|
path: '/auth/local',
|
|
|
|
handler: 'auth.callback',
|
|
|
|
config: {
|
2021-10-04 16:44:03 +02:00
|
|
|
middlewares: ['plugin::users-permissions.rateLimit'],
|
2021-09-06 08:52:37 +02:00
|
|
|
prefix: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
method: 'POST',
|
|
|
|
path: '/auth/local/register',
|
|
|
|
handler: 'auth.register',
|
|
|
|
config: {
|
2021-10-04 16:44:03 +02:00
|
|
|
middlewares: ['plugin::users-permissions.rateLimit'],
|
2021-09-06 08:52:37 +02:00
|
|
|
prefix: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
method: 'GET',
|
|
|
|
path: '/auth/:provider/callback',
|
|
|
|
handler: 'auth.callback',
|
|
|
|
config: {
|
|
|
|
prefix: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
method: 'POST',
|
|
|
|
path: '/auth/forgot-password',
|
|
|
|
handler: 'auth.forgotPassword',
|
|
|
|
config: {
|
2021-10-04 16:44:03 +02:00
|
|
|
middlewares: ['plugin::users-permissions.rateLimit'],
|
2021-09-06 08:52:37 +02:00
|
|
|
prefix: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
method: 'POST',
|
|
|
|
path: '/auth/reset-password',
|
|
|
|
handler: 'auth.resetPassword',
|
|
|
|
config: {
|
2021-10-04 16:44:03 +02:00
|
|
|
middlewares: ['plugin::users-permissions.rateLimit'],
|
2021-09-06 08:52:37 +02:00
|
|
|
prefix: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
method: 'GET',
|
|
|
|
path: '/auth/email-confirmation',
|
|
|
|
handler: 'auth.emailConfirmation',
|
|
|
|
config: {
|
|
|
|
prefix: '',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
method: 'POST',
|
|
|
|
path: '/auth/send-email-confirmation',
|
|
|
|
handler: 'auth.sendEmailConfirmation',
|
|
|
|
config: {
|
|
|
|
prefix: '',
|
|
|
|
},
|
|
|
|
},
|
2022-03-20 19:50:08 +01:00
|
|
|
{
|
2022-08-03 16:46:41 +02:00
|
|
|
method: 'POST',
|
2022-03-20 19:50:08 +01:00
|
|
|
path: '/auth/change-password',
|
|
|
|
handler: 'auth.changePassword',
|
|
|
|
config: {
|
|
|
|
middlewares: ['plugin::users-permissions.rateLimit'],
|
|
|
|
prefix: '',
|
|
|
|
},
|
|
|
|
},
|
2021-09-06 08:52:37 +02:00
|
|
|
];
|