mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-28 10:31:28 +00:00
Remove user supplied po_token and visitor_data
This commit is contained in:
@@ -126,22 +126,10 @@
|
||||
<input name="save_player_pos" id="save_player_pos" type="checkbox" <% if preferences.save_player_pos %>checked<% end %>>
|
||||
</div>
|
||||
|
||||
<% if !CONFIG.ignore_user_tokens %>
|
||||
<div class="pure-control-group">
|
||||
<label for="po_token"><%= translate(locale, "preferences_po_token") %></label>
|
||||
<input name="po_token" id="po_token" type="text" value="<%= preferences.po_token %>">
|
||||
</div>
|
||||
|
||||
<div class="pure-control-group">
|
||||
<label for="visitor_data"><%= translate(locale, "preferences_visitor_data") %></label>
|
||||
<input name="visitor_data" id="visitor_data" type="text" value="<%= preferences.visitor_data %>">
|
||||
</div>
|
||||
|
||||
<% if env.get?("user") %>
|
||||
<div class="pure-control-group">
|
||||
<a href="/generate_tokens?referer=<%= URI.encode_www_form(referer) %>"><%= translate(locale, "Generate po_token and visitor_data for your account") %></a>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<legend><%= translate(locale, "preferences_category_visual") %></legend>
|
||||
|
||||
Reference in New Issue
Block a user