-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MNOE-209] Unlimited failed attempts of login #162
[MNOE-209] Unlimited failed attempts of login #162
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Except for the specs ;)
@ouranos Specs are passing |
edcf76f
to
5eb2da5
Compare
adcea6f
to
254935d
Compare
user session is not returning either not found, either a user with password_not valid if the password is valid Resource needed to be returned properly to be able to be updated in the devise-3.5.10/lib/devise/models/lockable.rb
254935d
to
2a9cb6c
Compare
@ouranos I've rebased and squashed. Ready for final review.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'll do some testing locally too
# mapping.to is a wrapper over the resource model | ||
resource = mapping.to.new | ||
resource = mapping.to.authenticate(auth_params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd keep mapping.to.remote_authenticate(auth_params)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you meant mapping.to.new.remote_authentication(auth_params)
?
@@ -24,9 +25,10 @@ def authenticate! | |||
# | |||
# If the block returns true the resource will be loged in | |||
# If the block returns false the authentication will fail! | |||
if validate(resource){ resource = resource.remote_authentication(auth_params) } | |||
if validate(resource){ resource.password_valid } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra space
success!(resource) | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra line
@ouranos I've addressed your comments. |
b031b05
to
b470997
Compare
…uplicate [MNOE-320] App Comparison - Multiple notification displayed when more than 4 apps
user session is not returning either not found, either a user with password_not valid if the password is valid
Resource needed to be returned properly to be able to be updated in the devise-3.5.10/lib/devise/models/lockable.rb