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

Set devise stretches to default 10 #567

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dylanfisher
Copy link

I was running into a problem where logging in with a Spree user created after installing this gem was taking around 120 seconds to login in development. I think this was because the devise stretches was set to 20. See this thread for more context heartcombo/devise#1184 (comment).

Perhaps when this initializer was set up originally a different encryption strategy was being used and the higher stretches wasn't as slow.

To get around the issue while using this gem, just override the stretches config in a config/devise.rb initializer in the host app.

I was running into a problem where logging in with a Spree user created after installing this gem was taking around 120 seconds to login in development. I _think_ this was because the devise stretches was set to 20. See this thread for more context heartcombo/devise#1184 (comment).

Perhaps when this initializer was set up originally a different encryption strategy was being used and the higher stretches wasn't as slow.

To get around the issue while using this gem, just override the stretches config in a `config/devise.rb` initializer in the host app.
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