[geeklog-cvs] Auth_Enterprise/Client AEUser.class.php,1.2,1.3

tony at iowaoutdoors.org tony at iowaoutdoors.org
Thu Jun 17 01:37:50 EDT 2004


Update of /var/cvs/Auth_Enterprise/Client
In directory www:/tmp/cvs-serv6685

Modified Files:
	AEUser.class.php 
Log Message:
Added resetPassword

Index: AEUser.class.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/Client/AEUser.class.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** AEUser.class.php	16 Jun 2004 05:25:21 -0000	1.2
--- AEUser.class.php	17 Jun 2004 05:37:48 -0000	1.3
***************
*** 249,252 ****
--- 249,273 ----
      
      /**
+     * Resets a user's password to a randomly generated one
+     *
+     * @author Tony Bibbs <tony at geeklog.net>
+     * @access public
+     * @return string New randomly generated password
+     *
+     */
+     public function resetPassword()
+     {
+         try {
+             $newPassword = $this->clientProvider->resetPassword($this->userName);
+         } catch (Exception $error) {
+             die($error->getMessage());
+         }
+         
+         $this->setPassword($newPassword);
+         
+         return $newPassword;
+     }
+     
+     /**
      * Gets the application privileges for a given user
      *




More information about the geeklog-cvs mailing list