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

Commit

Permalink
update to seneca user 2
Browse files Browse the repository at this point in the history
  • Loading branch information
butlerx committed May 3, 2017
1 parent 760756f commit 37e6162
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"seneca-auth": "1.0.0",
"seneca-mail": "0.2.1",
"seneca-postgresql-store": "1.1.3",
"seneca-user": "1.0.0",
"seneca-user": "2.0.0",
"cp-permissions-plugin": "git://github.com/CoderDojo/cp-permissions-plugin#0.0.1",
"shortid": "2.2.2",
"util": "^0.10.3",
Expand Down
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;
Expand Down
2 changes: 1 addition & 1 deletion service.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,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'],
Expand Down

0 comments on commit 37e6162

Please sign in to comment.