lib/generators/rodauth/oauth/templates/app/views/rodauth/device_verification.html.erb in rodauth-oauth-0.10.4 vs lib/generators/rodauth/oauth/templates/app/views/rodauth/device_verification.html.erb in rodauth-oauth-1.0.0.pre.beta1

- old
+ new

@@ -1,10 +1,10 @@ <% oauth_grant = rodauth.scope.instance_variable_get(:@oauth_grant) %> <%= form_tag rodauth.device_path, method: :post, class: "form-horizontal", id: "device-verification-form" do %> - <p class="lead">The device with user code <%= oauth_grant[rodauth.oauth_grants_user_code_column] %> would like to access your data.</p> + <p class="lead"><%= rodauth.oauth_device_verification_page_lead(user_code: @oauth_grant[rodauth.oauth_grants_user_code_column]) %></p> <div class="form-group"> - <h1 class="display-6"><%= rodauth.oauth_tokens_scopes_label %></h1> + <h1 class="display-6"><%= rodauth.oauth_grants_scopes_label %></h1> <ul class="list-group"> <% oauth_grant[rodauth.oauth_grants_scopes_column].split(rodauth.oauth_scope_separator).each do |scope| %> <li class="list-group-item"><%= scope %></li> <% end %>