Module: Graphql::AccountLockHelper
- Included in:
- AuthenticationHelper, Mutations::Authentication::ForgotPassword, Mutations::Authentication::ResetPassword, Mutations::Authentication::SignIn, Mutations::Authentication::ValidateToken
- Defined in:
- app/helpers/graphql/account_lock_helper.rb
Instance Method Summary collapse
Instance Method Details
#account_locked?(user) ⇒ Boolean
4 5 6 7 |
# File 'app/helpers/graphql/account_lock_helper.rb', line 4 def account_locked?(user) return false unless lockable? user.access_locked? end |
#lockable? ⇒ Boolean
9 10 11 |
# File 'app/helpers/graphql/account_lock_helper.rb', line 9 def lockable? GraphQL::Authentication.configuration.allow_lock_account end |