Hi,
Could anyone tell me how the process works when you reset a forgotten password?
How do i use this generated password within a plugin to insert it into another table within the same db?
$password = $this->login->generatePassword();
Do i place a $_GET['password'] within my plugin or what?
public function sendPasswordResetEmail() {
$fields = $this->dictionary->toArray();
/* generate a password and encode it and the username into the url */
$password = $this->login->generatePassword();
$confirmParams = array(
'lp' => urlencode(base64_encode($password)),
'lu' => urlencode(base64_encode($fields['username']))
);
$confirmUrl = $this->modx->makeUrl($this->getProperty('resetResourceId',1),'',$confirmParams,'full');
Any help or advice are welcome and appreciated,
Thanks!