rave-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ja...@apache.org
Subject svn commit: r1160631 - in /incubator/rave/trunk/rave-portal/src/main/webapp: WEB-INF/applicationContext-security.xml login.jsp
Date Tue, 23 Aug 2011 11:18:26 GMT
Author: jasha
Date: Tue Aug 23 11:18:26 2011
New Revision: 1160631

URL: http://svn.apache.org/viewvc?rev=1160631&view=rev
Log:
RAVE-146 Add remember me feature

Modified:
    incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/applicationContext-security.xml
    incubator/rave/trunk/rave-portal/src/main/webapp/login.jsp

Modified: incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/applicationContext-security.xml
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/applicationContext-security.xml?rev=1160631&r1=1160630&r2=1160631&view=diff
==============================================================================
--- incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/applicationContext-security.xml
(original)
+++ incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/applicationContext-security.xml
Tue Aug 23 11:18:26 2011
@@ -53,6 +53,7 @@
 	 </security:openid-login>
 	 <security:form-login login-page="/login.jsp" authentication-failure-url="/login.jsp?authfail=form"
/>
 	 <security:logout/>
+     <security:remember-me/>
   </security:http>
   
   <security:authentication-manager>

Modified: incubator/rave/trunk/rave-portal/src/main/webapp/login.jsp
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal/src/main/webapp/login.jsp?rev=1160631&r1=1160630&r2=1160631&view=diff
==============================================================================
--- incubator/rave/trunk/rave-portal/src/main/webapp/login.jsp (original)
+++ incubator/rave/trunk/rave-portal/src/main/webapp/login.jsp Tue Aug 23 11:18:26 2011
@@ -38,22 +38,29 @@
                 <label for="passwordField">Password: </label>
                 <input id="passwordField" type="password" name="j_password"/>
             </p>
+            <p>
+                <label for="remember_me" class="checkboxLabel">
+                    <input type='checkbox' name='_spring_security_remember_me' id="remember_me"
+                           value="true"/>
+                    Remember me
+                </label>
+            </p>
         </fieldset>
         <fieldset>
             <input type="submit" value="Login"/>
         </fieldset>
     </form>
-	
-	<h2>New User</h2>
-	<form id="newAccount" action="<c:url value="/app/newaccount.jsp"/>" method="get">
-		<fieldset>
-			<p>
-				<label for="createNewAccountButton">Register: </label>
-				<input id="createNewAccountButton" type="submit" value="Create New Account" />
-			</p>
-		</fieldset>
-	</form>
-	
+    
+    <h2>New User</h2>
+    <form id="newAccount" action="<c:url value="/app/newaccount.jsp"/>" method="get">
+        <fieldset>
+            <p>
+                <label for="createNewAccountButton">Register: </label>
+                <input id="createNewAccountButton" type="submit" value="Create New Account"
/>
+            </p>
+        </fieldset>
+    </form>
+    
     <h2>OpenID Identity</h2>
     <form id="oidForm" name='oidf' action='j_spring_openid_security_check' method='POST'>
         <c:if test="${param['authfail'] eq 'openid'}">
@@ -64,6 +71,13 @@
                 <label for="openid_identifier">Identity: </label>
                 <input type='text' id="openid_identifier" name='openid_identifier' class="long"/>
             </p>
+            <p>
+                <label for="remember_me_openid" class="checkboxLabel">
+                    <input type='checkbox' name='_spring_security_remember_me' id="remember_me_openid"
+                           value="true"/>
+                    Remember me
+                </label>
+            </p>
         </fieldset>
         <fieldset>
             <input type="submit" value="Login with OpenID"/>



Mime
View raw message