Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
birger
users
Commits
6d24022f
Commit
6d24022f
authored
Aug 05, 2021
by
o@immerda.ch
Browse files
ui for revoking app pw
parent
9584f748
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/controllers/users_controller.rb
View file @
6d24022f
...
...
@@ -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
]
...
...
app/views/users/_active.html.erb
View file @
6d24022f
...
...
@@ -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
))
%>
...
...
config/locales/en.yml
View file @
6d24022f
...
...
@@ -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."
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment