]> git.mxchange.org Git - friendica.git/blobdiff - mod/lostpass.php
Docs: add a note on adding `use` on theme.php
[friendica.git] / mod / lostpass.php
index 75d29731be71d7daba16b4c022af40ca00980f5b..af4518ca16246292a9b8a18f8461797d9e9646e1 100644 (file)
@@ -11,7 +11,6 @@ use Friendica\Model\User;
 use Friendica\Util\DateTimeFormat;
 
 require_once 'boot.php';
-require_once 'include/datetime.php';
 require_once 'include/enotify.php';
 require_once 'include/text.php';
 
@@ -70,6 +69,7 @@ function lostpass_post(App $a)
        notification([
                'type'     => SYSTEM_EMAIL,
                'to_email' => $user['email'],
+               'uid'      => $user['uid'],
                'subject'  => L10n::t('Password reset requested at %s', $sitename),
                'preamble' => $preamble,
                'body'     => $body
@@ -126,6 +126,7 @@ function lostpass_form()
 function lostpass_generate_password($user)
 {
        $o = '';
+       $a = get_app();
 
        $new_password = User::generateNewPassword();
        $result = User::updatePassword($user['uid'], $new_password);
@@ -164,6 +165,7 @@ function lostpass_generate_password($user)
                notification([
                        'type'     => SYSTEM_EMAIL,
                        'to_email' => $user['email'],
+                       'uid'      => $user['uid'],
                        'subject'  => L10n::t('Your password has been changed at %s', $sitename),
                        'preamble' => $preamble,
                        'body'     => $body