fix: APK tap-to-sign-in - reduce to 5 taps, use correct demo credentials
This commit is contained in:
parent
bf2fbe9b19
commit
f0db9d5e5f
1 changed files with 4 additions and 4 deletions
|
|
@ -97,7 +97,7 @@ export default function LoginPage() {
|
|||
className="lg:hidden relative group w-fit mb-8 select-none active:scale-95 transition-transform"
|
||||
onClick={async () => {
|
||||
const now = Date.now();
|
||||
const windowTime = 5000; // 5 seconds to tap 11 times
|
||||
const windowTime = 5000; // 5 seconds to tap 5 times
|
||||
|
||||
// Reset if too much time passed
|
||||
if ((window as any).lastTap && now - (window as any).lastTap > 1000) {
|
||||
|
|
@ -107,7 +107,7 @@ export default function LoginPage() {
|
|||
(window as any).lastTap = now;
|
||||
(window as any).tapCount = ((window as any).tapCount || 0) + 1;
|
||||
|
||||
if ((window as any).tapCount >= 11) {
|
||||
if ((window as any).tapCount >= 5) {
|
||||
(window as any).tapCount = 0;
|
||||
setIsLoading(true);
|
||||
try {
|
||||
|
|
@ -119,8 +119,8 @@ export default function LoginPage() {
|
|||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: {
|
||||
email: 'tenwest@proton.me',
|
||||
password: '2GreenSlugs!'
|
||||
email: 'admin@runfoo.run',
|
||||
password: 'password123'
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue