|
|
|
@ -101,7 +101,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
|
|
|
|
|
|
// append rate limit config, if specified
|
|
|
|
|
if ((
|
|
|
|
|
Elements.ratelimitLoginRequests.value
|
|
|
|
|
Elements.ratelimitLoginRequests.value
|
|
|
|
|
|| Elements.ratelimitLoginTime.value
|
|
|
|
|
|| Elements.ratelimitUploadRequests.value
|
|
|
|
|
|| Elements.ratelimitUploadTime.value
|
|
|
|
@ -110,8 +110,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
|
) {
|
|
|
|
|
if (!config.rateLimit) config.rateLimit = {};
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
genericRateLimit(config.rateLimit, 'login', Elements.submitButton, Elements.ratelimitLoginRequests, Elements.ratelimitLoginTime)
|
|
|
|
|
if (
|
|
|
|
|
genericRateLimit(config.rateLimit, 'login', Elements.submitButton, Elements.ratelimitLoginRequests, Elements.ratelimitLoginTime)
|
|
|
|
|
|| genericRateLimit(config.rateLimit, 'api', Elements.submitButton, Elements.ratelimitApiRequests, Elements.ratelimitApiTime)
|
|
|
|
|
|| genericRateLimit(config.rateLimit, 'upload', Elements.submitButton, Elements.ratelimitUploadRequests, Elements.ratelimitUploadTime)
|
|
|
|
|
) {
|
|
|
|
|