freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/openid.fmt
author Jaroslav Tulach <jtulach@netbeans.org>
Thu, 25 Nov 2010 23:08:20 +0100
changeset 278 3a472605338f
parent 151 freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/login.fmt@b9e67a17bd10
permissions -rw-r--r--
Initial support log via OpenID. Now I need to generate a login cookie and we'll be done
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     2 <html>
     3   <head>
     4     <title>${bundle.TITLE_PLAIN}</title>
     5     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     6     <#if url?? >
     7       <meta http-equiv="REFRESH" content="1;URL=${url}">
     8     </#if>
     9     <script type="text/javascript">
    10         function setFocus() {
    11             var name = document.getElementById("openid_identifier");
    12             name.focus();
    13         }
    14     </script>  </head>
    15   <body bgcolor="white" onload="setFocus();">
    16       <h1>${bundle.TITLE}</h1>
    17       <h2>${bundle.LOGIN}</h2>
    18 
    19       <#if id?? >
    20         ${bundle("logged", id?string)}
    21         <a href="/">${bundle.home}</a>
    22       <#else>
    23 
    24       <b>${message!""}</b>
    25       <#if url?? >
    26         <p>
    27          ${bundle.REDIRECT}
    28       <#else>
    29           <form action="/openid" method="post">
    30               <label for="openid_indentifier">${bundle.OPENID}</label> 
    31               <input type="text" name="openid_identifier" id="openid_identifier"/>
    32               <input type="submit" value="${bundle.LOGIN}"/>
    33           </form>
    34       </#if>
    35       </#if>
    36       <hr/>
    37       ${bundle("copyright", version)}
    38   </body>
    39 </html>