Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 42e8e3e

Browse files
committed
update to seneca user 2
1 parent d23de6e commit 42e8e3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/database/pg/migrations/019.do.add-user-lock.sql renamed to scripts/database/pg/migrations/024.do.add-user-lock.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
DO $$
22
BEGIN
33
BEGIN
4-
ALTER TABLE sys_user ADD COLUMN lock_try integer;
4+
ALTER TABLE sys_user ADD COLUMN failed_login_count integer;
55
EXCEPTION
66
WHEN duplicate_column THEN RAISE NOTICE 'column token already exists in sys_user.';
77
END;

service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ require('./migrate-psql-db.js')(function (err) {
5858
logger: log.logger
5959
});
6060
seneca.use(require('./oauth2.js'), {clients: config.oauth2.clients});
61-
seneca.use('user');
61+
seneca.use('user', { failedCount: 3 });
6262
seneca.use('auth');
6363
seneca.use(require('./users.js'),
6464
{ 'email-notifications': config['email-notifications'],

0 commit comments

Comments
 (0)