Skip to content
This repository was archived by the owner on Feb 8, 2026. It is now read-only.

Set devise stretches to default 10#567

Open
dylanfisher wants to merge 1 commit intospree:mainfrom
dylanfisher:patch-1
Open

Set devise stretches to default 10#567
dylanfisher wants to merge 1 commit intospree:mainfrom
dylanfisher:patch-1

Conversation

@dylanfisher
Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant