Let me post what I have done first:
config.lock_strategy = :failed_attempt config.unlock_keys = [ :email ] config.unlock_strategy = :both config.maximum_attempts = 10 config.unlock_in = 30.minutes
I have added all the fields in the respective table and added: lockable in model as well.
The problem I am facing is, my account is getting locked upon 10 bad attempts, and Admin is able to log in and manually unlock it.
However my 2nd scenario is, I need the account to be unlocked after 30min as I have specified.
I need to know if I am supposed to be calling any separate method for unlock_in to work.
Related Posts:
- Advanced AREL or just Rails Query for has_many through search by association
- How can I convert MP3 file to a Base64 encoded string? [closed]
- What is a sanity test/check
- What is an instance variable in Java?
- Discord music bot not working
- Python Math – TypeError: ‘NoneType’ object is not subscriptable
- TCP vs UDP – What is a TCP connection? [duplicate]
- ssh : Permission denied (publickey,gssapi-with-mic)
- Error in “MLSD” command While Connecting FTP to Server [closed]
- Java default constructor
- How do I make a delay in Java?
- did you specify the right host or port? error on Kubernetes
- How does Java’s PriorityQueue differ from a min-heap?
- What is a bitmask and a mask?
- C++ code file extension? What is the difference between .cc and .cpp
- How to remove origin from git repository
- XPath contains(text(),’some string’) doesn’t work when used with node with more than one Text subnode
- Transport endpoint is not connected
- How to convert .crt to .pem [duplicate]
- pagebreak in markdown while creating pdf
- Rails 5 ActionController::InvalidAuthenticityToken error
- How do I correctly clean up a Python object?
- How do I split a string on a delimiter in Bash?
- Why does Wi-Fi have so much more bandwidth than Bluetooth?
- undefined method `each’ for nil:NilClass… why?
- How do I get a list of built-in data sets in R?
- java.text.ParseException: Unparseable date
- Difference between .o and .ko file
- R error: all arguments must have the same length
- undefined method `each’ for nil:NilClass… why?
- spring @sqlgroup with multiple datasource
- What is the definition of a “disparity map”?
- How do I install the OpenSSL libraries on Ubuntu?
- How can I specify a display?
- Clearing localStorage in javascript?
- Search all the occurrences of a string in the entire project in Android Studio
- “docker build” requires exactly 1 argument(s)
- declaring a priority_queue in c++ with a custom comparator
- Android java.lang.IllegalStateException: Could not execute method of the activity
- SwiftUI – How do I change the background color of a View?
- How to resolve the error java.net.SocketException: Too many open files
- Using map in Haskell
- How to one hot encode several categorical variables in R
- cannot load such file — bundler/setup (LoadError)
- Downgrade npm to an older version
- Mongoose.js: remove collection or DB
- How can I change the color of my prompt in zsh (different from normal text)?
- mkdir c++ function
- C’s printf and fprintf(stdout,) are not printing
- What’s the difference between SoftReference and WeakReference in Java?
- Identity matrix in Julia
- Letsencrypt renewal fails: Could not bind to IPv4 or IPv6.. Skipping
- bcrypt LoadError: Cannot load such file
- Google Gmail – “The conversation that you requested could not be loaded”
- Ruby String to Date Conversion
- apt-get for Cygwin?
- heroku open – no app specified
- Python: What OS am I running on?
- ER-Diagram: Ternary Relationship – How to read properly?
- How can I diff 2 files while ignoring leading white space
- TypeError: no implicit conversion of Symbol into Integer
- What is “pass-by-name” and how does it work exactly?
- is it possible to get the MAC address for machine using nmap
- Import error No module named skimage
- How to stop (and restart) the Rails Server?
- Why define PI = 4*ATAN(1.d0)
- Generate model in Rails using user_id:integer vs user:references
- mport win32ui in python 3.6
- Empty functions in Javascript
- Solr: how to delete a collection?
- How to print a int64_t type in C
- How to store data in the flash memory of a Arduino Uno (ATmega328p)
- What is a blob URL and why it is used?
- Call to undefined function `get_plugin_data()`
- Contact Form 7 – Execute code AFTER mail send [closed]
- How to apply a patch?
- TwentyTwentyTwo – How to add PHP logic to Post templates?
- Maintenance holding page while migrating website
- Multiple og:image for Facebook
- How to get a current post’s blog id
- Rendering javascript in render_callback php Code
- Will has_category be true is used on index and one of queried posts has the category?
- How to get a value from wp_dropdown_user?
- Exclude categories with only sticky posts OR count sticky post of specific category
- How do I deal with a compromised server?
- Something is burning in the server room; how can I quickly identify what it is?
- Finding out what user Apache is running as?
- Do systemd unit files have to be reloaded when modified?
- What is a glue record?
- How do I convert a .cer certificate to .pem?
- Run Oracle SQL script and exit from sqlplus.exe via command prompt
- Show full process name in top
- How do you do load testing and capacity planning for web sites?
- What is a good SSH server to use on Windows? [closed]
- In systemd, what’s the difference between After= and Requires=?
- Windows Server restart / shutdown history
- How do I set the global PATH environment variable on OS X?
- nmap find all alive hostnames and IPs in LAN
- Should CNAME Be Used For Subdomains?
- How do I create user accounts from the Terminal in Mac OS X 10.5?