diff --git a/src/auth/password/PasswordAuthMethod.ts b/src/auth/password/PasswordAuthMethod.ts index 48040ab..7029216 100644 --- a/src/auth/password/PasswordAuthMethod.ts +++ b/src/auth/password/PasswordAuthMethod.ts @@ -71,7 +71,7 @@ export default class PasswordAuthMethod implements AuthMethod } catch (e) { if (e instanceof AuthError) { Throttler.throttle('login_failed_attempts_user', 3, 3 * 60 * 1000, // 3min - user.getOrFail('name'), 1000, 60 * 1000); // 1min + user.getOrFail('id').toString(), 1000, 60 * 1000); // 1min Throttler.throttle('login_failed_attempts_ip', 50, 60 * 1000, // 1min req.ip, 1000, 3600 * 1000); // 1h diff --git a/src/components/ExpressAppComponent.ts b/src/components/ExpressAppComponent.ts index 541a9df..6977837 100644 --- a/src/components/ExpressAppComponent.ts +++ b/src/components/ExpressAppComponent.ts @@ -21,7 +21,7 @@ export default class ExpressAppComponent extends ApplicationComponent { public async start(app: Express): Promise { this.server = app.listen(this.port, this.addr, () => { - logger.info(`Web server running on ${this.addr}:${this.port}.`); + logger.info(`Web server running on http://${this.addr}:${this.port}.`); }); // Proxy