(error: string, status: number)
| 185 | const password = form.get('password'); |
| 186 | const styleNonce = nonce(); |
| 187 | const fail = (error: string, status: number): Response => |
| 188 | html(renderLoginPage({ next, error, nonce: styleNonce }), { status, nonce: styleNonce }); |
| 189 | |
| 190 | if (!(await loginRateLimitOk(env, request))) { |
| 191 | return fail('Too many attempts. Wait a minute and try again.', 429); |
no test coverage detected