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 +++++++++++++++++ 4 files changed, 70 insertions(+) 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 (limited to 'src/app/Views/auth') 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

+ +
+ + + + + + + + + + +
+
-- cgit v1.2.3