Skip to content

Conversation

@phoenixx-codes
Copy link
Contributor

Key changes:

Added JWT authentication for secure login and protected routes

Implemented admin-only access using middleware-based authorization

Secured admin CRUD APIs (events, news, etc.)

Added password hashing helpers to the User model (set_password, check_password)
(no schema changes — only helper methods added)

Added enum validation to prevent invalid data entries

Notes:

This PR supersedes the earlier admin_crud PR, which did not include authentication

Admin users are created manually (dev setup) and authenticated via JWT

tested successfully through postman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants