Files
vms/app/views/home/index.html.erb
David Böhm abe9267893
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / scan_js (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
Modified authentication with user_signed_in? and current_user
2024-08-25 01:20:55 +02:00

20 lines
534 B
Plaintext

<p style="color: green"><%= notice %></p>
<% if user_signed_in? %>
<p>Signed as <%= current_user.email %></p>
<h2>Login and verification</h2>
<div>
<%= link_to "Change password", edit_password_path %>
</div>
<div>
<%= link_to "Change email address", edit_identity_email_path %>
</div>
<h2>Access history</h2>
<div>
<%= link_to "Devices & Sessions", sessions_path %>
</div>
<br>
<%= button_to "Log out", Current.session, method: :delete %>
<% else %>
<%= link_to "Log in", sign_in_path %>
<% end %>