fixes bug in previous commit.

pull/217/head
Christophe Vandeplas 2013-07-11 14:28:12 +02:00
parent 7949181fbc
commit ff2f08f60d
1 changed files with 1 additions and 1 deletions

View File

@ -604,7 +604,7 @@ class UsersController extends AppController {
if ($this->request->data['User']['action'] == '1') {
$i = 0;
foreach ($recipients as $rec) {
$password = $this->__randomPassword();
$password = $this->User->generateRandomPassword();
$messageP = "\n\nYour temporary password: " . $password;
$message[$i] = $message1 . $messageP . $message2;
$recipientPass[$i] = $password;