Skip to content
Snippets Groups Projects
Commit d7d30cf3 authored by pabois's avatar pabois
Browse files

remove autocomplete for access token

parent ee807aa9
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,7 @@ module ApplicationHelper
def masked_string(string)
string = string.to_s # in case it was nil
mask_length = [(string.length - 5), 0].max
mask_length = 30 if mask_length > 30
string.to_s.gsub(/.+(?=.{5})/, '•' * mask_length)
end
......
......@@ -25,6 +25,8 @@
<%= f.input :access_token,
as: :password,
placeholder: masked_string(f.object.access_token),
autocomplete: 'off',
role: 'presentation',
hint: t("simple_form.hints.communication_website.access_token_#{f.object.access_token.blank? ? 'without' : 'with'}_existing").html_safe
%>
<%= f.input :repository %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment