mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-27 01:05:21 +08:00
Merge pull request #2775 from urbanrotnik/ur-sci-4904-unlock-instruction
Add check if user is locked, show link unlock instructions [SCI-4904]
This commit is contained in:
commit
98c3721d8c
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
|||
<%= link_to t("devise.links.not_receive_confirmation"), new_confirmation_path(resource_name) %><br />
|
||||
<% end -%>
|
||||
|
||||
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
|
||||
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' && flash[:alert] == t('devise.failure.locked') %>
|
||||
<%= link_to t("devise.links.not_receive_unlock"), new_unlock_path(resource_name) %><br />
|
||||
<% end -%>
|
||||
|
||||
|
|
Loading…
Reference in a new issue