update authentication system to Devise
This commit is contained in:
12
app/views/devise/shared/_links.erb
Normal file
12
app/views/devise/shared/_links.erb
Normal file
@ -0,0 +1,12 @@
|
||||
<%- if controller_name != 'sessions' %>
|
||||
<%= link_to t(:signin), new_session_path(resource_name) %><br>
|
||||
<% end -%>
|
||||
|
||||
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
|
||||
<%= link_to t(:signup), new_registration_path(resource_name) %><br>
|
||||
<% end -%>
|
||||
|
||||
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
|
||||
<%= link_to t(:password_forgot), new_password_path(resource_name) %><br>
|
||||
<% end -%>
|
||||
|
Reference in New Issue
Block a user