Improve error messaging for login/register flows#175
Merged
runleveldev merged 6 commits intomainfrom Feb 3, 2026
Merged
Conversation
Copilot
AI
changed the title
[WIP] Improve error messaging for login and registration process
Improve error messaging for login/register flows
Feb 3, 2026
170ef4b to
e1e486a
Compare
- Add user-friendly error messages for duplicate username/email during registration - Distinguish between 2FA notification denied vs timeout - Add loading banner during 2FA authentication wait Co-authored-by: runleveldev <44057501+runleveldev@users.noreply.github.com>
…aded wrapper Co-authored-by: runleveldev <44057501+runleveldev@users.noreply.github.com>
e1e486a to
c3c463d
Compare
runleveldev
requested changes
Feb 3, 2026
- Created reusable alert classes (alert, alert-success, alert-error, alert-info) - Replaced all inline styles in login.ejs and register.ejs with CSS classes - Loading banner now uses alert alert-info classes with only display:none inline - Improves maintainability and consistency across the application Co-authored-by: runleveldev <44057501+runleveldev@users.noreply.github.com>
cmyers-mieweb
approved these changes
Feb 3, 2026
Collaborator
cmyers-mieweb
left a comment
There was a problem hiding this comment.
Lets get this merged
runleveldev
approved these changes
Feb 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve Error Messaging for Login/Register Process ✅
Issue 1: Registration duplicate key errors
/create-a-container/routers/register.jsto catch Sequelize unique constraint errorsIssue 2: Login 2FA waiting banner
/create-a-container/views/login.ejsto show temporary banner with hourglass emojiIssue 3: Specific 2FA error messages
/create-a-container/routers/login.jsCode Review Feedback
Testing & Validation
Implementation Details
Registration Error Messages
The registration handler now catches
SequelizeUniqueConstraintErrorand provides specific, user-friendly messages:2FA Loading Banner
A blue informational banner appears during login form submission with:
2FA Error Messages
The 2FA error handling now distinguishes between:
CSS Refactoring
Created reusable alert classes in
style.css:All inline styles have been removed from templates and replaced with these CSS classes, improving maintainability and consistency.
Security Summary
✅ CodeQL scan completed with 0 vulnerabilities detected.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.