[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/components/com_user/models/ -> reset.php (summary)

(no description)

Copyright: Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
License: GNU/GPL, see LICENSE.php
Version: $Id: reset.php 21046 2011-03-31 16:11:40Z dextercowley $
File Size: 267 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

UserModelReset:: (4 methods):
  requestReset()
  confirmReset()
  completeReset()
  _sendConfirmationMail()


Class: UserModelReset  - X-Ref

User Component Reset Model

requestReset($email)   X-Ref
Verifies the validity of a username/e-mail address
combination and creates a token to verify the request
was initiated by the account owner.  The token is
sent to the account owner by e-mail

param: string    Username string
param: string    E-mail address
return: bool    True on success/false on failure

confirmReset($token, $username)   X-Ref
Checks a user supplied token for validity
If the token is valid, it pushes the token
and user id into the session for security checks.

param: token    An md5 hashed randomly generated string
return: bool    True on success/false on failure

completeReset($password1, $password2)   X-Ref
Takes the new password and saves it to the database.
It will only save the password if the user has the
correct user id and token stored in her session.

param: string    New Password
param: string    New Password
return: bool    True on success/false on failure

_sendConfirmationMail($email, $token)   X-Ref
Sends a password reset request confirmation to the
specified e-mail address with the specified token.

param: string    An e-mail address
param: string    An md5 hashed randomly generated string
return: bool    True on success/false on failure



Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1