Account settings

You are currently logged in as <%= @current_user.username %> (<%= @current_user.dn %>), using <%= @current_user.email %> as primary contact method.

Change email

<%= form_for @email_changeset, Routes.user_settings_path(@conn, :update), fn f -> %> <%= if @email_changeset.action do %>

Oops, something went wrong! Please check the errors below.

<% end %> <%= hidden_input f, :action, name: "action", value: "update_email" %> <%= email_input f, :email, required: true, placeholder: "Email" %> <%= error_tag f, :email %>
<%= password_input f, :current_password, required: true, name: "current_password", id: "current_password_for_email", placeholder: "Current password" %> <%= error_tag f, :current_password %>
<%= submit "Change email" %>
<% end %>

Change password

<%= form_for @password_changeset, Routes.user_settings_path(@conn, :update), fn f -> %> <%= if @password_changeset.action do %>

Oops, something went wrong! Please check the errors below.

<% end %> <%= hidden_input f, :action, name: "action", value: "update_password" %> <%= password_input f, :password, required: true, placeholder: "New password" %> <%= error_tag f, :password %>
<%= password_input f, :password_confirmation, required: true, placeholder: "New password confirmation" %> <%= error_tag f, :password_confirmation %>
<%= password_input f, :current_password, required: true, name: "current_password", id: "current_password_for_password", placeholder: "Current password" %> <%= error_tag f, :current_password %>
<%= submit "Change password" %>
<% end %>

SSH Keys

<%= form_for @key_changeset, Routes.user_keys_path(@conn, :new), fn f -> %> <%= if @key_changeset.action do %>

Oops, something went wrong! Please check the errors below.

<% end %> <%= text_input f, :comment, placeholder: "comment" %> <%= error_tag f, :comment %>
<%= textarea f, :value, required: true, placeholder: "value" %> <%= error_tag f, :value %>
<%= submit "Add key" %>
<% end %> <%= for key <- @keys do %> <% end %>
Comment Imported on Fingerprint Actions
<%= key.comment %> <%= key.inserted_at %> <%= key.fingerprint %> <%= link "Delete", to: Routes.user_keys_path(@conn, :delete, key.id) %>