diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-21 21:35:51 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-21 21:35:51 +0100 |
| commit | bc54c8c31e7f50a7a365f9b4d22fe8c74a29f61a (patch) | |
| tree | 73a88384b9e472386d244119a0b4e4aa028c8b32 /src/config/routes.php | |
| parent | d1ef15fa39935bfa0420c5ac2b8c269e294c9a6d (diff) | |
| download | camagru-bc54c8c31e7f50a7a365f9b4d22fe8c74a29f61a.tar.gz camagru-bc54c8c31e7f50a7a365f9b4d22fe8c74a29f61a.zip | |
Add user authentication with email verification and password reset
Implements registration, login/logout, email verification via token,
and password reset flow. Includes CSRF protection, flash messages,
MailPit for dev email testing, and security docs in README.
Diffstat (limited to 'src/config/routes.php')
| -rw-r--r-- | src/config/routes.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/config/routes.php b/src/config/routes.php index d25cfb5..e5f289c 100644 --- a/src/config/routes.php +++ b/src/config/routes.php @@ -5,3 +5,15 @@ declare(strict_types=1); /** @var \App\Router $router */ $router->get('/', 'HomeController', 'index'); + +// Auth +$router->get('/register', 'AuthController', 'registerForm'); +$router->post('/register', 'AuthController', 'register'); +$router->get('/verify', 'AuthController', 'verify'); +$router->get('/login', 'AuthController', 'loginForm'); +$router->post('/login', 'AuthController', 'login'); +$router->get('/logout', 'AuthController', 'logout'); +$router->get('/forgot-password', 'AuthController', 'forgotPasswordForm'); +$router->post('/forgot-password', 'AuthController', 'forgotPassword'); +$router->get('/reset-password', 'AuthController', 'resetPasswordForm'); +$router->post('/reset-password', 'AuthController', 'resetPassword'); |
