Skip to content

Commit

Permalink
feat: add lockable setting
Browse files Browse the repository at this point in the history
  • Loading branch information
zernie committed Jun 2, 2021
1 parent a4214e0 commit 2b29bb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/spree/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class User < Spree::Base
:rememberable, :trackable, :validatable, :encryptable
devise :confirmable if Spree::Auth::Config[:confirmable]
devise :omniauthable, omniauth_providers: Spree::Auth::Config[:omniauthable] if Spree::Auth::Config[:omniauthable].present?
devise :lockable if Spree::Auth::Config[:lockable].present?

if defined?(Spree::SoftDeletable)
include Spree::SoftDeletable
Expand Down
1 change: 1 addition & 0 deletions lib/spree/auth_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class AuthConfiguration < Preferences::Configuration
preference :registration_step, :boolean, default: true
preference :signout_after_password_change, :boolean, default: true
preference :confirmable, :boolean, default: false
preference :lockable, :boolean, default: false
preference :omniauthable_providers, :array, default: []
preference :draw_frontend_routes, :boolean, default: true
preference :draw_backend_routes, :boolean, default: true
Expand Down

0 comments on commit 2b29bb8

Please sign in to comment.