First
[anni] / lib / pleroma / web / templates / twitter_api / remote_follow / follow_mfa.html.eex
1 <%= if @error do %>
2 <h2><%= @error %></h2>
3 <% end %>
4 <h2><%= Gettext.dpgettext("static_pages", "remote follow mfa header", "Two-factor authentication") %></h2>
5 <p><%= @followee.nickname %></p>
6 <img height="128" width="128" src="<%= avatar_url(@followee) %>">
7 <%= form_for @conn, Routes.remote_follow_path(@conn, :do_follow), [as: "mfa"], fn f -> %>
8 <%= text_input f, :code, placeholder: Gettext.dpgettext("static_pages", "placeholder text for auth code entry", "Authentication code"), required: true %>
9 <br>
10 <%= hidden_input f, :id, value: @followee.id %>
11 <%= hidden_input f, :token, value: @mfa_token %>
12 <%= submit Gettext.dpgettext("static_pages", "remote follow authorization button for mfa", "Authorize") %>
13 <% end %>