Sha256: 8a843bcf3c240c928fe8769f92b99c0d68b86c751ca0db0b083cff97fb4c8fa3

Contents?: true

Size: 1.03 KB

Versions: 13

Compression:

Stored size: 1.03 KB

Contents

<form method="post" action="#{rodauth.device_path}" class="form-horizontal" role="form" id="device-verification-form">
  #{csrf_tag(rodauth.device_path) if respond_to?(:csrf_tag)}
  <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_grants_scopes_label}</h1>

    <ul class="list-group">
    #{
      scopes = @oauth_grant[rodauth.oauth_grants_scopes_column].split(rodauth.oauth_scope_separator)
      scopes.map do |scope|
        <<-HTML
          <li class="list-group-item">#{scope}</li>
        HTML
      end.join
    }
    </ul>
  </div>
  <input type="hidden" name="user_code" value="#{rodauth.param("user_code")}"/>
  <p class="text-center">
    <input type="submit" class="btn btn-outline-primary" value="#{h(rodauth.oauth_device_verification_button)}"/>
    <a href="#{rodauth.device_path}?error=access_denied" class="btn btn-outline-danger">#{rodauth.oauth_cancel_button}</a>
  </p>
</form>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rodauth-oauth-1.6.3 templates/device_verification.str
rodauth-oauth-1.6.2 templates/device_verification.str
rodauth-oauth-1.6.0 templates/device_verification.str
rodauth-oauth-1.5.0 templates/device_verification.str
rodauth-oauth-1.4.0 templates/device_verification.str
rodauth-oauth-1.3.2 templates/device_verification.str
rodauth-oauth-1.3.1 templates/device_verification.str
rodauth-oauth-1.3.0 templates/device_verification.str
rodauth-oauth-1.2.0 templates/device_verification.str
rodauth-oauth-1.1.0 templates/device_verification.str
rodauth-oauth-1.0.0 templates/device_verification.str
rodauth-oauth-1.0.0.pre.beta2 templates/device_verification.str
rodauth-oauth-1.0.0.pre.beta1 templates/device_verification.str