mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
d8142abbbe
commit
9746a65473
6 changed files with 298 additions and 241 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue