Add dashboard, allow password resets when signed in

This commit is contained in:
2020-11-11 18:56:06 +01:00
parent 674b0a0ff5
commit a09741ba28
14 changed files with 86 additions and 13 deletions

View File

@@ -0,0 +1,9 @@
<h2>Dashboard</h2>
<p>Ohai.</p>
<h3>Password change</h3>
<p>
<%= form_with(url: settings_reset_password_path, method: :post) do %>
<%= submit_tag("Send me a password reset link") %>
<% end %>
</p>

View File

@@ -16,9 +16,12 @@
Signed in as <strong><%= current_user.cn %>@kosmos.org</strong>.
<%= link_to "Log out", destroy_user_session_path, method: :delete %>
</p>
<% flash.each do |type, msg| %>
<% end %>
<% flash.each do |type, msg| %>
<div class="flash-msg-<%= type %>">
<p><%= msg %></p>
<% end %>
</div>
<% end %>
<%= yield %>

View File

@@ -1,4 +1 @@
<h3>Password reset</h3>
<p>
<%= link_to "Reset my password" %>
</p>
<h2>Settings</h2>

View File

@@ -0,0 +1,3 @@
<p>
You can close this window or tab now.
</p>