- <%= 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 %>
- <%= hidden_field_tag :state, params[:state] %>
-
- <%= 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' %>
+
+
+
+
+
+ <%= 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 %>
+ <%= submit_tag '同意授权', class: "btn btn-login btn-lg btn-block mt-20" %>
+ <% end %>
+
+ <%= link_to "拒绝", '/access_denied', class: 'reg-link' %>
+
-
-
\ No newline at end of file
+
+<% else %>
+
+
+ 申请使用 GitLink 账号登录
+ <%= @app&.name %>
+
+
+
+
+ <%= 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' %>
+
+
+
+
+<% end %>
+
+
+