fix: admin/login: wrong message "server didn't respond" when antibrute is delaying you
Massimo Melina committed
Feb 26, 2023 at 16:00 UTC
2bac196a74d09a96d0ef343db04ad3c00de4d7f6
1 file changed
+1
admin/src/api.ts
+1
@@ -25,6 +25,7 @@ export function useApiEx<T=any>(...args: Parameters<typeof useApi>) {
25
const PREFIX = '/~/api/'
26
27
const timeoutByApi: Dict = {
28
+ loginSrp1: 90, // support antibrute
29
get_status: 20 // can be lengthy on slow machines because of the find-process-on-busy-port feature
30
}
31
export function apiCall(cmd: string, params?: Dict, { timeout=undefined }={}) {