<!-- Table which may show conditional error messages to the client
       and provides the login form. -->

  <table>
  <tbody>
  <!--#if expr="\"${REDIRECT_ERROR_NOTES}\" = /\"Could not discover the provided id.\"/" -->
  <tr><td>&nbsp;</td>
      <td>
      Could not discover the provided id. Please provide a valid HTTP(S) OpenID URI.
      </td>
  </tr>
  <!--#elif expr="\"${REDIRECT_ERROR_NOTES}\" = /\"Could not discover the provided id. Invalid identifier.\"/" -->
  <tr><td>&nbsp;</td>
      <td>
      Could not discover the provided id. Please provide a valid HTTP(S) OpenID URI.
      </td>
  </tr>
  <!--#elif expr="\"${REDIRECT_ERROR_NOTES}\" = /\"Could not discover the provided id. .*\"/" -->
  <tr><td>&nbsp;</td>
      <td>
      Could not discover the provided id. Server is not reachable or does not support the provided id.
      Please provide a valid HTTP(S) OpenID URI.
      </td>
  </tr>
  <!--#elif expr="\"${REDIRECT_ERROR_NOTES}\" = /\"Login failed. Unknown identity.\"/" -->
  <tr><td>&nbsp;</td>
      <td>
      Access denied.
      </td>
  </tr>
  <!--#elif expr="\"${REDIRECT_ERROR_NOTES}\" = /\"Login failed. .*\"/" -->
  <tr><td>&nbsp;</td>
      <td>
      Login failed. Ensure that your browser accept cookies.
      </td>
  </tr>
  <!--#endif -->

  <!-- The login form MUST include the OpenID field openid_identifier.
       while the aoid_redirect_to filed provides the optional path
       a user should be redirected too after login (encrypted value). -->

  <form action="" name="aoid" method="POST">
  <tr><td>OpenID:&nbsp;</td>
      <td>
      <input name="openid_identifier" id="openid_identifier" type="text" value="https://" size="50"/><br>
      <input name="aoid_redirect_to" id="aoid_redirect_to" type="hidden" value="<!--#echo var="aoid_redirect_to"-->"/>
      </td>
  </tr>
  <tr><td>&nbsp;</td>
      <td>
      <input name="aoidaction" id="aoidaction" type="submit" value="Log in">
      </td>
  </tr>
  <form>
  </tbody>
  </table>


  <!-- A logout link may be used to unset the session cookie at the client.
       The aoid_logout variable indicates that the user has a valid session. -->
  <hr>
  <!--#if expr="\"${aoid_logout}\" = /\"cmd=logout\"/" -->
  <a href="?cmd=logout">Logout</a>
  <!--#endif -->