Merge pull request #1012 from NARKOZ/devise
Add 10 minutes lock after 10 failed login attempts (Devise :lockable)
This commit is contained in:
commit
4c24cabf47
10 changed files with 66 additions and 35 deletions
|
@ -52,7 +52,7 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
def layout_by_resource
|
||||
if devise_controller?
|
||||
"devise"
|
||||
"devise_layout"
|
||||
else
|
||||
"application"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue