]> 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 73167e6fe0a9f3fdcc363184e0b6e60bf334dd0b..af4518ca16246292a9b8a18f8461797d9e9646e1 100644 (file)
@@ -69,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
@@ -125,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);
@@ -163,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