/** * send new password to user */ public function resetPassword() { $pwdGen = Framework::randomString(12); $this->password = Framework::hash($pwdGen); $this->last_pass_reset = time(); R::store($this->bean); $emailTPL = new Smarty(); $emailTPL->assign("username", $this->username); $emailTPL->assign('homepage', APP_WEBSITE . APP_DIR); $emailTPL->assign('password', $pwdGen); Framework::sendMail($this->username . ' <' . $this->email . '>', "Manager's Life: Neues Passwort", $emailTPL->fetch("mail/user_newpass.txt")); }