From bc54c8c31e7f50a7a365f9b4d22fe8c74a29f61a Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Sat, 21 Mar 2026 21:35:51 +0100 Subject: 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. --- src/app/Views/auth/forgot-password.php | 13 +++++++++++++ src/app/Views/auth/login.php | 17 +++++++++++++++++ src/app/Views/auth/register.php | 23 +++++++++++++++++++++++ src/app/Views/auth/reset-password.php | 17 +++++++++++++++++ src/app/Views/layouts/main.php | 2 +- src/app/Views/partials/flash.php | 8 ++++++++ 6 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 src/app/Views/auth/forgot-password.php create mode 100644 src/app/Views/auth/login.php create mode 100644 src/app/Views/auth/register.php create mode 100644 src/app/Views/auth/reset-password.php create mode 100644 src/app/Views/partials/flash.php (limited to 'src/app/Views') diff --git a/src/app/Views/auth/forgot-password.php b/src/app/Views/auth/forgot-password.php new file mode 100644 index 0000000..c0eb25e --- /dev/null +++ b/src/app/Views/auth/forgot-password.php @@ -0,0 +1,13 @@ + +
+

Forgot password

+ +
+ + + + + +
+

Back to login

+
diff --git a/src/app/Views/auth/login.php b/src/app/Views/auth/login.php new file mode 100644 index 0000000..da9e7e5 --- /dev/null +++ b/src/app/Views/auth/login.php @@ -0,0 +1,17 @@ + +
+

Login

+ +
+ + + + + + + + +
+

Forgot your password?

+

Don't have an account? Register

+
diff --git a/src/app/Views/auth/register.php b/src/app/Views/auth/register.php new file mode 100644 index 0000000..f98102e --- /dev/null +++ b/src/app/Views/auth/register.php @@ -0,0 +1,23 @@ + +
+

Register

+ +
+ + + + + + + + + + + + + + +
+

Already have an account? Log in

+
diff --git a/src/app/Views/auth/reset-password.php b/src/app/Views/auth/reset-password.php new file mode 100644 index 0000000..dfdcab2 --- /dev/null +++ b/src/app/Views/auth/reset-password.php @@ -0,0 +1,17 @@ + +
+

Reset password

+ +
+ + + + + + + + + + +
+
diff --git a/src/app/Views/layouts/main.php b/src/app/Views/layouts/main.php index b4c7dad..fd9ca40 100644 --- a/src/app/Views/layouts/main.php +++ b/src/app/Views/layouts/main.php @@ -28,7 +28,7 @@ diff --git a/src/app/Views/partials/flash.php b/src/app/Views/partials/flash.php new file mode 100644 index 0000000..e9a87e7 --- /dev/null +++ b/src/app/Views/partials/flash.php @@ -0,0 +1,8 @@ + +
+ +
+ -- cgit v1.2.3