fix(ui): update wording for password lockout message
All checks were successful
Automated Container Build / build-and-push (push) Successful in 39s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 39s
This commit is contained in:
parent
78ba0bf2d5
commit
7d3f3088ef
1 changed files with 4 additions and 5 deletions
|
|
@ -155,12 +155,11 @@ export default function PublicSharePage({ params }: { params: Promise<{ id: stri
|
|||
{showPassword ? <EyeOff className="w-5 h-5" /> : <Eye className="w-5 h-5" />}
|
||||
</button>
|
||||
</div>
|
||||
{passwordError && (
|
||||
{lockoutTime > 0 ? (
|
||||
<p className="mt-2 text-sm text-red-400">Too many incorrect attempts, try again in {lockoutTime} seconds</p>
|
||||
) : passwordError ? (
|
||||
<p className="mt-2 text-sm text-red-400">{passwordError}</p>
|
||||
)}
|
||||
{lockoutTime > 0 && (
|
||||
<p className="mt-2 text-sm text-yellow-400">Locked out. Try again in {lockoutTime}s.</p>
|
||||
)}
|
||||
) : null}
|
||||
</div>
|
||||
<button
|
||||
type="submit"
|
||||
|
|
|
|||
Reference in a new issue