lib/generators/rodauth/oauth/templates/app/views/rodauth/authorize.html.erb in rodauth-oauth-0.7.4 vs lib/generators/rodauth/oauth/templates/app/views/rodauth/authorize.html.erb in rodauth-oauth-0.8.0

- old
+ new

@@ -1,10 +1,10 @@ <%= form_tag rodauth.authorize_path, method: :post do %> <p class="lead">The application <%= rodauth.oauth_application[rodauth.oauth_applications_name_column] %> would like to access your data.</p> <div class="form-group"> - <h1 class="display-6"><%= rodauth.scopes_label %></h1> + <h1 class="display-6"><%= rodauth.oauth_tokens_scopes_label %></h1> <% rodauth.scopes.each do |scope| %> <% is_default = scope == rodauth.oauth_application_default_scope %> <div class="form-check"> <%= check_box_tag "scope[]", scope, is_default, disabled: is_default, id: scope, class: "form-check-input" %> @@ -21,9 +21,9 @@ <% if params[:response_mode] %> <%= hidden_field_tag :response_mode, params[:response_mode] %> <% end %> </div> <p class="text-center"> - <%= submit_tag "Authorize", class: "btn btn-outline-primary" %> - <%= link_to "Cancel", "#{rodauth.redirect_uri}?error=access_denied&error_description=The+resource+owner+or+authorization+server+denied+the+request#{"&state=\#{rodauth.state}" if params[:state] }", class: "btn btn-outline-danger" %> + <%= submit_tag rodauth.oauth_authorize_button, class: "btn btn-outline-primary" %> + <%= link_to rodauth.oauth_cancel_button, "#{rodauth.redirect_uri}?error=access_denied&error_description=The+resource+owner+or+authorization+server+denied+the+request#{"&state=\#{rodauth.state}" if params[:state] }", class: "btn btn-outline-danger" %> </p> <% end %>