Add support for backup email addresses

Support secondary email addresses that can be used to recover an account
in case access to the primary email address is lost. Reset keys for an
account are always sent to both the primary and the backup email
address.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2020-01-30 17:15:33 +01:00
parent e5a839bf0b
commit ee2aa9755f
9 changed files with 47 additions and 14 deletions

View file

@ -33,6 +33,7 @@ if ($action == "UpdateAccount") {
in_request("T"),
in_request("S"),
in_request("E"),
in_request("BE"),
in_request("H"),
in_request("P"),
in_request("C"),
@ -97,6 +98,7 @@ if (isset($_COOKIE["AURSID"])) {
$row["AccountTypeID"],
$row["Suspended"],
$row["Email"],
$row["BackupEmail"],
$row["HideEmail"],
"",
"",
@ -159,6 +161,7 @@ if (isset($_COOKIE["AURSID"])) {
in_request("T"),
in_request("S"),
in_request("E"),
in_request("BE"),
in_request("H"),
in_request("P"),
in_request("C"),