/**
  * Send new password
  */
 public function sendPassword($h)
 {
     // check username
     $username = $h->cage->post->testUsername('username');
     $userAuth = new UserAuth();
     $userAuth->getUserBasic($h, 0, $username);
     if ($userAuth->id) {
         // send password!
         $passconf = md5(crypt(md5($userAuth->email), md5($userAuth->email)));
         $userAuth->newRandomPassword($h, $userAuth->id, $passconf);
         $h->messages[$h->lang['user_man_new_password_sent']] = 'green';
     } else {
         $h->vars['user_man_username_2'] = $username;
         // to fill the username field
         $h->messages[$h->lang['user_man_user_not_found']] = 'red';
     }
 }