Skip to content

Commit 2b29bb8

Browse files
committed
feat: add lockable setting
1 parent a4214e0 commit 2b29bb8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/models/spree/user.rb

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class User < Spree::Base
88
:rememberable, :trackable, :validatable, :encryptable
99
devise :confirmable if Spree::Auth::Config[:confirmable]
1010
devise :omniauthable, omniauth_providers: Spree::Auth::Config[:omniauthable] if Spree::Auth::Config[:omniauthable].present?
11+
devise :lockable if Spree::Auth::Config[:lockable].present?
1112

1213
if defined?(Spree::SoftDeletable)
1314
include Spree::SoftDeletable

lib/spree/auth_configuration.rb

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class AuthConfiguration < Preferences::Configuration
55
preference :registration_step, :boolean, default: true
66
preference :signout_after_password_change, :boolean, default: true
77
preference :confirmable, :boolean, default: false
8+
preference :lockable, :boolean, default: false
89
preference :omniauthable_providers, :array, default: []
910
preference :draw_frontend_routes, :boolean, default: true
1011
preference :draw_backend_routes, :boolean, default: true

0 commit comments

Comments
 (0)