Merge pull request #4731 from tobiasd/20180403-lostpwd

pass uid to notification system so securemail addon can pick it up
This commit is contained in:
Hypolite Petovan 2018-04-03 07:14:01 -04:00 committed by GitHub
commit b2a9fbc249
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View 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
@ -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