Update of /cvsroot/roller/roller/src/org/roller/model
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7045/src/org/roller/model
Modified Files:
UserManager.java
Log Message:
Implemented "Remember Me" feature as recommended by Charles
Index: UserManager.java
===================================================================
RCS file: /cvsroot/roller/roller/src/org/roller/model/UserManager.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** UserManager.java 15 Feb 2004 05:33:10 -0000 1.22
--- UserManager.java 21 Mar 2004 04:33:56 -0000 1.23
***************
*** 89,92 ****
--- 89,118 ----
*/
public PageData retrievePageReadOnly(String id) throws RollerException;
+
+ /**
+ * Validates a user based on a cookie value. If successful, it returns
+ * a new cookie String. If not, then it returns null.
+ *
+ * @param value (in format username|guid)
+ * @return indicator that this is a valid login
+ * @throws Exception
+ */
+ public String checkLoginCookie(String value) throws RollerException;
+
+ /**
+ * Creates a cookie string using a username - designed for use when
+ * a user logs in and wants to be remembered.
+ *
+ * @param username
+ * @return String to put in a cookie for remembering user
+ * @throws Exception
+ */
+ public String createLoginCookie(String username) throws RollerException;
+
+ /**
+ * Deletes all cookies for user.
+ * @param username
+ */
+ public void removeLoginCookies(String username) throws RollerException;
}
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
|