Hi
I want to do lock a user account by default whenever admin creates it in the system and unlocking will be done by the admin later. How can I achieve this?
I configured in the file devise.eb:
config.lock_strategy = :none
config.unlock_strategy = :none
but I am not sure what to do in user.rb (devise :lockable is added in user.rb)
I can add a field in "locked_at" as two functions lock_access! and "unlock_access!" are using this field but how to use these two functions present in Devise::lockable.rb?
Can i get some example for manual locking and unlocking, that is, no lock strategy?
Thanks & Regards
Amit