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

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to seneca user 2
Browse files Browse the repository at this point in the history
butlerx committed Dec 28, 2017
1 parent d23de6e commit 42e8e3e
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DO $$
BEGIN
BEGIN
ALTER TABLE sys_user ADD COLUMN lock_try integer;
ALTER TABLE sys_user ADD COLUMN failed_login_count integer;
EXCEPTION
WHEN duplicate_column THEN RAISE NOTICE 'column token already exists in sys_user.';
END;
2 changes: 1 addition & 1 deletion service.js
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ require('./migrate-psql-db.js')(function (err) {
logger: log.logger
});
seneca.use(require('./oauth2.js'), {clients: config.oauth2.clients});
seneca.use('user');
seneca.use('user', { failedCount: 3 });
seneca.use('auth');
seneca.use(require('./users.js'),
{ 'email-notifications': config['email-notifications'],

0 comments on commit 42e8e3e

Please sign in to comment.