Module auth_controller

Module auth_controller 

Source

Functionsยง

api_login_action
Enhanced JSON login endpoint for API calls
check_auth_status
API endpoint to check authentication status
dashboard_view
GET /adminx - Dashboard/Home page
login_action
POST /adminx/login - Authenticate and store token in session
login_form
GET /adminx/login - Show login page
logout_action
GET/POST /adminx/logout - Clear session and redirect
profile_view
GET /adminx/profile - Show user profile