This repository was archived by the owner on Dec 14, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
scripts/database/pg/migrations Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 48
48
"seneca-auth" : " 1.0.0" ,
49
49
"seneca-mail" : " 0.2.1" ,
50
50
"seneca-postgresql-store" : " 1.1.3" ,
51
- "seneca-user" : " 1 .0.0" ,
51
+ "seneca-user" : " 2 .0.0" ,
52
52
"cp-permissions-plugin" : " git://github.com/CoderDojo/cp-permissions-plugin#0.0.1" ,
53
53
"shortid" : " 2.2.2" ,
54
54
"util" : " ^0.10.3" ,
Original file line number Diff line number Diff line change 1
1
DO $$
2
2
BEGIN
3
3
BEGIN
4
- ALTER TABLE sys_user ADD COLUMN lock_try integer ;
4
+ ALTER TABLE sys_user ADD COLUMN failed_login_count integer ;
5
5
EXCEPTION
6
6
WHEN duplicate_column THEN RAISE NOTICE ' column token already exists in sys_user.' ;
7
7
END;
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ require('./migrate-psql-db.js')(function (err) {
48
48
logger : log . logger
49
49
} ) ;
50
50
seneca . use ( require ( './oauth2.js' ) , { clients : config . oauth2 . clients } ) ;
51
- seneca . use ( 'user' ) ;
51
+ seneca . use ( 'user' , { failedCount : 3 } ) ;
52
52
seneca . use ( 'auth' ) ;
53
53
seneca . use ( require ( './users.js' ) ,
54
54
{ 'email-notifications' : config [ 'email-notifications' ] ,
You can’t perform that action at this time.
0 commit comments