Commit 6d24022f authored by o@immerda.ch's avatar o@immerda.ch
Browse files

ui for revoking app pw

parent 9584f748
......@@ -60,6 +60,8 @@ class UsersController < AdminController
[:unlock, true]
elsif params[:disable_2fa]
[:disable_2fa, true]
elsif params[:revoke_app_pw]
[:revoke_app_pw, true]
elsif params[:lock]
[:lock, true]
elsif params[:delete]
......
......@@ -45,6 +45,13 @@
<% end -%>
<% end -%>
<% if @the_user['app_pw_logins'] -%>
<%= form_tag("#{users_path}/#{URI::escape(@the_user['email'])}", method: "post") do %>
<%= hidden_field_tag(:revoke_app_pw, true) %>
<%= submit_tag t(:revoke_app_pw) %>
<% end -%>
<% end -%>
<table><tr><td>
<%= form_tag("#{users_path}/#{URI::escape(@the_user['email'])}", method: "post") do %>
<%= label_tag(:recovery_email, (t :override_recovery_email)) %>
......
......@@ -223,6 +223,8 @@ en:
paid: paid
bill_thanks: "Thank you very much for donating a total of %{amount} to immerda.ch in the year %{year}!"
revoke_app_pw: Revoke app passwords
quota_msg:
zero: "You have exceeded you resources. Contact us if you need more."
one: "You can still create one."
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment