forked from cardosofelipe/fast-next-template
Enhance demo mode credential validation and refine MSW configuration
- Updated demo credential logic to accept any password ≥8 characters for improved UX. - Improved MSW configuration to ignore non-API requests and warn only for unhandled API calls. - Adjusted `DemoModeBanner` to reflect updated password requirements for demo credentials.
This commit is contained in:
@@ -43,7 +43,9 @@ export function DemoModeBanner() {
|
||||
</p>
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<p className="text-xs font-medium text-muted-foreground">Demo Credentials:</p>
|
||||
<p className="text-xs font-medium text-muted-foreground">
|
||||
Demo Credentials (any password ≥8 chars works):
|
||||
</p>
|
||||
<div className="space-y-1.5">
|
||||
<code className="block rounded bg-muted px-2 py-1.5 text-xs font-mono">
|
||||
<span className="text-muted-foreground">user:</span>{' '}
|
||||
|
||||
Reference in New Issue
Block a user