Skip to content
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

Strategy update to support password / yubikey #3

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

Conversation

dmz006
Copy link

@dmz006 dmz006 commented Sep 9, 2015

I had problems getting yubikey working on my rails 4 projects.

Changed the strategy to handle password or yubikey and it seems to work fine with rails 4+.

Updated details to say rails 4 and information on how to configure for strong parameters in rails 4

lib/devise_yubikey_database_authenticatable/strategy.rb
When using yubikey OR (not AND) a password, needed to remove the resource = valid_password?
and also change the resource.valid_password?(password) after validate(resource)
since the password may be blank if using the Yubikey only for auth

Signed-off-by: David M. Zendzian <[email protected]>
Signed-off-by: David M. Zendzian @ rtwap <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant