Class: passwdManager

Source Location: /bblog/inc/passwordReset.class.php ( Revision Log )

Class passwdManager

Class Overview

passwordReset.class.php - password management.

This class should manage the obtaining, resetting, and passing of passwords from and to the DB. I did it this way because i prefer anything password related to be managed in one place only. I'm still confused with constructors between java and php, so feel free to fix it.

Located in /bblog/inc/passwordReset.class.php [line 18]



		
				Author(s):
		
		
		
Information Tags:
License:  GNU General Public License
Copyright:  The bBlog Project, http://www.bblog.com/
Version:  $Id: $

Properties

Methods

[ Top ]
Property Summary
mixed   $username  

[ Top ]
Method Summary
var   encrypt_password()   Hash the new password with sha1()
var   get_password()   Resets a users's password.
var   random_password()   Generate new password.
void   set_password()   update author's table with new password.

[ Top ]
Properties
mixed   $username = "temp" [line 21]

[ Top ]
Methods
encrypt_password  [line 59]

  var encrypt_password( var $random_password  )

Hash the new password with sha1()

while writing this comment i just noticed its 'hashing' not 'encrypting', so don't let the function name fool you

Parameters:
var   $random_password:  the new random password generated


[ Top ]
get_password  [line 33]

  var get_password( mixed $username, var $bBlog  )

Resets a users's password.

Call the random_password(x) function in order to generate a new password, and return it back to the user.

Parameters:
var   $bBlog:  User name to reset the password of


[ Top ]
random_password  [line 73]

  var random_password( integer $len  )

Generate new password.

Generates a new random password

Parameters:
integer   $len:  Length of new password

Information Tags:
Author:  huhu - <http://www.phpfreaks.com/quickcode/Random_Password_Generator/56.php>

[ Top ]
set_password  [line 44]

  void set_password( var $enc_password  )

update author's table with new password.

Parameters:
var   $enc_password:  The new encrypted password


[ Top ]