Reset Your Password
Page Purpose: Set new password after reset request.
User Context: User clicked reset link from email.
Next Steps: After reset →
Login Page
Set New Password
Invalid or Expired Link?
If your reset link is invalid or expired, you'll see an error message.
Common reasons:
- Link has expired (older than 24 hours)
- Link has already been used
- Link is malformed or incomplete
Request a new password reset link
Form Validation
Client-side validation:
- New Password: Required, minimum 6 characters
- Confirm Password: Must match new password
- Password strength indicator (weak/medium/strong)
Server-side validation:
- Token is valid and not expired
- Token has not been used
- Email matches token
- Password meets strength requirements
- Password is different from current password
Error messages:
- "Password reset link is invalid or has expired"
- "Password must be at least 6 characters"
- "Passwords do not match"
- "New password cannot be the same as your old password"
Success Flow
- Validate reset token
- Update user's password hash
- Mark token as used
- Invalidate all existing sessions
- Send confirmation email
- Redirect to login with success message
Data Model
AspNetUsers Table Fields Updated:
- PasswordHash (updated with new hash)
- SecurityStamp (regenerated)
Password Reset Token Validation:
- Token must match database record
- ExpirationDate must be in the future
- IsUsed must be false
- Email must match user record
Security Features
- Token Validation: Cryptographic token verification
- Time-Limited: 24-hour expiration
- Single Use: Token can only be used once
- Session Invalidation: Logs out all existing sessions
- Confirmation Email: Notifies user of password change
- Audit Trail: Logs password reset activity
Confirmation Email
Subject: Your Password Has Been Reset
Body:
"Hello [FirstName],
Your password for Remarx has been successfully reset.
If you did not make this change, please contact support immediately at support@remarx.com.
For security, you may need to log in again on all your devices.
- Remarx Team"