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 4848 "seneca-auth" : " 1.0.0" ,
4949 "seneca-mail" : " 0.2.1" ,
5050 "seneca-postgresql-store" : " 1.1.3" ,
51- "seneca-user" : " 1 .0.0" ,
51+ "seneca-user" : " 2 .0.0" ,
5252 "cp-permissions-plugin" : " git://github.com/CoderDojo/cp-permissions-plugin#0.0.1" ,
5353 "shortid" : " 2.2.2" ,
5454 "util" : " ^0.10.3" ,
Original file line number Diff line number Diff line change 11DO $$
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;
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ require('./migrate-psql-db.js')(function (err) {
4848 logger : log . logger
4949 } ) ;
5050 seneca . use ( require ( './oauth2.js' ) , { clients : config . oauth2 . clients } ) ;
51- seneca . use ( 'user' ) ;
51+ seneca . use ( 'user' , { failedCount : 3 } ) ;
5252 seneca . use ( 'auth' ) ;
5353 seneca . use ( require ( './users.js' ) ,
5454 { 'email-notifications' : config [ 'email-notifications' ] ,
You can’t perform that action at this time.
0 commit comments