Author: prabath
Date: Wed Feb 13 04:41:02 2008
New Revision: 13699

Log:

'remember me' functionality added 

Modified:
   
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openidauthentication.jsp

Modified: 
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openidauthentication.jsp
==============================================================================
--- 
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openidauthentication.jsp
       (original)
+++ 
trunk/solutions/identity/modules/user-ui/src/main/webapp/jsp/openidauthentication.jsp
       Wed Feb 13 04:41:02 2008
@@ -8,6 +8,22 @@
 <head>
 <title>WSO2 Identity Solution | Management Console</title>
 <link type="text/css" rel="stylesheet" href="css/styles.css" />
+
+<script type="text/javascript" language="JavaScript">
+
+        function setRememberMe() {
+            var val = document.getElementById("chkRemember").checked;
+            var remMe = document.getElementById("remember");
+
+            if (val) {
+                remMe.value = "true";
+            } else {
+                remMe.value = "false";
+            }
+        }
+
+    </script>
+
 </head>
 <body>
 
@@ -28,7 +44,8 @@
                        .getParameterValue("openid.identity")
                        : null;
        String site = (String) (openidrealm == null ? openidreturnto
-               : openidrealm);
+                       : openidrealm);
+
  %>
 
 <table cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
@@ -45,7 +62,7 @@
                        </tr>
                </table>
 
-        <s:iterator value="errorMessages">
+               <s:iterator value="errorMessages">
                        <div class="error-message"><s:property /></div>
                </s:iterator> <s:iterator value="infoMessages">
                        <div class="info-message"><s:property /></div>
@@ -53,12 +70,14 @@
                <table cellpadding="0" cellspacing="10" border="0"
                        class="login-header">
                        <tr>
-                               <td><s:form 
action="/OpenIDAuthVerification.action" theme="simple"
-                                       method="POST">
+                               <td><s:form 
action="/OpenIDAuthVerification.action"
+                                       theme="simple" method="POST">
+                                       <input type="hidden" id="remember" 
name="remember" value="false" />
                                        <div class="errors"><s:actionerror /> 
<s:fielderror /></div>
                                        <table>
                                                <tr>
-                                                       <td><strong>Please sign 
in to authenticate to <%=openidreturnto%> as <%=openididentity%>.</strong></td>
+                                                       <td><strong>Please sign 
in to authenticate to <%=openidreturnto%>
+                                                       as 
<%=openididentity%>.</strong></td>
                                                </tr>
                                        </table>
                                        <table>
@@ -67,13 +86,19 @@
                                                        <table cellpadding="0" 
cellspacing="10" border="0"
                                                                
class="form-table">
                                                                <tr>
-                                                                       <td 
colspan="2"><strong>Login with your OpenID password</strong></td>
+                                                                       <td 
colspan="2"><strong>Login with your OpenID
+                                                                       
password</strong></td>
                                                                </tr>
                                                                <tr>
                                                                        <td 
width="10%">Password</td>
                                                                        
<td><input type="password" name="password"></td>
                                                                </tr>
                                                                <tr>
+                                                                       <td 
width="10%" align="right"><input type="checkbox" id="chkRemember"
+                                                                               
onclick="setRememberMe();"></td>
+                                                                       
<td>Remember me on this computer</td>
+                                                               </tr>
+                                                               <tr>
                                                                        
<td></td>
                                                                        
<td><s:submit value="Login" align="left" cssClass="button" /></td>
                                                                </tr>
@@ -83,7 +108,7 @@
 
                                                        <td><img 
src="images/line-sep.png" height="150" width="2" /></td>
 
-                                                       <td valign="middle" 
align="center"  width="5%"><strong>OR</strong></td>
+                                                       <td valign="middle" 
align="center" width="5%"><strong>OR</strong></td>
 
                                                        <td><img 
src="images/line-sep.png" height="150" width="2" /></td>
 

_______________________________________________
Identity-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/identity-dev

Reply via email to