<%= form_tag oauth2_path, method: :post, authenticity_token: true, remote: true, class: 'login-form' do %>
<%= hidden_field_tag :client_id, @app.uid %>
<%= hidden_field_tag :call_url, @call_url %>
<%= text_field_tag :login, '', placeholder: '请输入邮箱地址/用户名' %>
<%= password_field_tag :password, '', placeholder: '请输入密码'%>
<%= submit_tag '授权登录', class: "btn btn-login btn-lg btn-block mt-20" %>
<% end %>
<%= link_to "注 册", '/register', class: 'reg-link' %>