Skip to content

Enhanced admin page ui and logout errors#475

Merged
Nsanjayboruds merged 1 commit into
Nsanjayboruds:mainfrom
rajsinghpiyush:main
Jul 16, 2026
Merged

Enhanced admin page ui and logout errors#475
Nsanjayboruds merged 1 commit into
Nsanjayboruds:mainfrom
rajsinghpiyush:main

Conversation

@rajsinghpiyush

@rajsinghpiyush rajsinghpiyush commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Pull Request #418

@Nsanjayboruds
Summary

Enhanced the Admin Login page with a modern, responsive, and user-friendly interface while fixing admin authentication and logout issues caused by improper refresh token handling.

Description
Redesigned the Admin Login page with a cleaner, more modern, and fully responsive UI to improve the overall user experience.
Improved the login form with better layout, validation feedback, loading states, and visual enhancements.
Fixed the admin logout issue by correctly clearing the adminToken and adminRefreshToken cookies during logout.
Updated the logout API request from GET to POST to align with RESTful practices.
Fixed the admin authentication middleware to correctly validate JWT payloads containing either id or email.
Removed unnecessary refresh token database creation for the virtual admin account, preventing authentication inconsistencies and logout errors.

Related Issue

Fixes #<issue_number>

Type of Change

✅ Bug fix
✅ UI/UX improvement

@Nsanjayboruds
Nsanjayboruds merged commit 4a4a5f0 into Nsanjayboruds:main Jul 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants