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

Add support for account, #205

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

butlerx
Copy link
Contributor

@butlerx butlerx commented Jul 14, 2016

add db migration for user lockout
add email asking user to reset when account lockout
requires update to zen to have reset_password link

@butlerx butlerx force-pushed the enchanment/bruteforce-protection branch 2 times, most recently from 451d625 to 2718b26 Compare July 14, 2016 16:41
@DanielBrierton
Copy link
Member

Requires senecajs/seneca-user#54 to be merged and released before this.

@Wardormeur
Copy link
Contributor

Released : senecajs/seneca-user@66981c3
breaking change, requires an extra migration @butlerx (thanks to @mihaidma :))

@butlerx
Copy link
Contributor Author

butlerx commented Aug 22, 2016

migration is there but this will need to be updated as final implementation differed from the initial one this was designed for

@butlerx butlerx closed this Dec 3, 2016
@butlerx butlerx deleted the enchanment/bruteforce-protection branch December 3, 2016 12:42
@butlerx butlerx restored the enchanment/bruteforce-protection branch December 3, 2016 12:44
@butlerx butlerx reopened this Dec 3, 2016
@Wardormeur
Copy link
Contributor

Are the removed keys duplicates?

@butlerx butlerx force-pushed the enchanment/bruteforce-protection branch from 0d39144 to 37e6162 Compare May 3, 2017 11:43
BEGIN
ALTER TABLE sys_user ADD COLUMN failed_login_count integer;
EXCEPTION
WHEN duplicate_column THEN RAISE NOTICE 'column token already exists in sys_user.';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

token -> failed_login_count

@butlerx butlerx force-pushed the enchanment/bruteforce-protection branch 3 times, most recently from 99eb0e6 to ffce999 Compare December 28, 2017 14:13
@butlerx
Copy link
Contributor Author

butlerx commented Dec 28, 2017

seneca-user v2 is now supported with node 8 update


seneca.act({ role: 'cd-users', cmd: 'get_users_by_email', email }, (err, users) => {
if (err) return done(err);
if (options['email-notifications'].sendemail) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unecessary : it's already checked by email-notif:send

service.js Outdated
@@ -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 });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wardormeur
Wardormeur previously approved these changes Dec 29, 2017
@Wardormeur
Copy link
Contributor

To be tested manually for changes between seneca-user 1 -> 2, but code LGTM

@butlerx
Copy link
Contributor Author

butlerx commented Dec 29, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants