summaryrefslogtreecommitdiffstats
path: root/web/html/passreset.php
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-06-27 22:20:48 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-08-08 12:59:23 +0200
commit9746a654736cba12c234f3c1b3d7b67427678ce3 (patch)
treeebf6cc553c697bb065e2c4bced5c244744d461c2 /web/html/passreset.php
parentd8142abbbee6a44693bd303838777fb93013b5c2 (diff)
downloadaur-9746a654736cba12c234f3c1b3d7b67427678ce3.tar.gz
aur-9746a654736cba12c234f3c1b3d7b67427678ce3.tar.xz
Port notification routines to Python
Use a Python script for sending notification emails. The notification action and additional parameters are passed via command line arguments. For comment and package request notifications, the text is passed via stdin. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/html/passreset.php')
-rw-r--r--web/html/passreset.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/web/html/passreset.php b/web/html/passreset.php
index 29f2c648..cb2f6bcd 100644
--- a/web/html/passreset.php
+++ b/web/html/passreset.php
@@ -46,14 +46,7 @@ if (isset($_GET['resetkey'], $_POST['email'], $_POST['password'], $_POST['confir
if (empty($email)) {
$error = __('Missing a required field.');
} else {
- $subject = 'AUR Password Reset';
- $body = __('A password reset request was submitted for the ' .
- 'account %s associated with your e-mail address. ' .
- 'If you wish to reset your password follow the ' .
- 'link below, otherwise ignore this message and ' .
- 'nothing will happen.', $username);
- send_resetkey($email, $subject, $body);
-
+ send_resetkey($email);
header('Location: ' . get_uri('/passreset/') . '?step=confirm');
exit();
}