Unlock access
When a user is locked account by failed access, the account dont can unlocked. This feature permit unlocked by admin.
Merge request reports
Activity
@roramirez can you give more background on this? When user get locked?
@dzaporozhets The user was locked when have N loggin failed attempts. This is configurable on config/initializers/devise.rb
@roramirez i though you get unlocked after 10 minutes
This does seem like a useful feature, especially someone else has also has been confused about how to unlock a user. "Wait 10 minutes" seems a bit unsatisfying for a system administrator. @dzaporozhets, is it worth rebasing this MR and getting it in?
@stanhu yes I think it worth
@sublee Since Dmitriy has given his approval, can you please rebase so we can merge?
@dblessing But it's not mine.
Whoops! @roramirez see my note above
132 132 %br 133 133 = link_to 'Block user', block_admin_user_path(@user), data: { confirm: 'USER WILL BE BLOCKED! Are you sure?' }, method: :put, class: "btn btn-remove" 134 134 135 - if @user.access_locked? 136 .alert.alert-info 137 %h4 This user access was locked 138 %br 139 = link_to 'Unlock access user', unlock_admin_user_path(@user), method: :put, class: "btn btn-new", data: { confirm: 'Are you sure?' } 132 132 %br 133 133 = link_to 'Block user', block_admin_user_path(@user), data: { confirm: 'USER WILL BE BLOCKED! Are you sure?' }, method: :put, class: "btn btn-remove" 134 134 135 - if @user.access_locked? 136 .alert.alert-info 137 %h4 This user access was locked mentioned in merge request !922 (merged)
Closed in favor of !922 (merged).
mentioned in commit 7081ab1e
mentioned in commit fc63690d