mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Require password when changing account information
Since commitsdaee20c
(Require current password when setting a new one, 2020-01-30) and8fc8898
(Require password when deleting an account, 2020-01-30), changing a password and deleting an account require the current password. Extend this to all other profile changes. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
8fc8898fef
commit
def2787b45
4 changed files with 21 additions and 24 deletions
|
@ -34,7 +34,6 @@ if ($action == "UpdateAccount") {
|
|||
in_request("S"),
|
||||
in_request("E"),
|
||||
in_request("H"),
|
||||
in_request("PO"),
|
||||
in_request("P"),
|
||||
in_request("C"),
|
||||
in_request("R"),
|
||||
|
@ -49,7 +48,9 @@ if ($action == "UpdateAccount") {
|
|||
in_request("UN"),
|
||||
in_request("ON"),
|
||||
in_request("ID"),
|
||||
$row["Username"]);
|
||||
$row["Username"],
|
||||
in_request("passwd")
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ if (in_request("Action") == "NewAccount") {
|
|||
in_request("H"),
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
in_request("R"),
|
||||
in_request("L"),
|
||||
in_request("TZ"),
|
||||
|
@ -40,6 +39,7 @@ if (in_request("Action") == "NewAccount") {
|
|||
in_request("ON"),
|
||||
0,
|
||||
"",
|
||||
'',
|
||||
in_request("captcha_salt"),
|
||||
in_request("captcha"),
|
||||
);
|
||||
|
@ -55,7 +55,6 @@ if (in_request("Action") == "NewAccount") {
|
|||
in_request("H"),
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
in_request("R"),
|
||||
in_request("L"),
|
||||
in_request("TZ"),
|
||||
|
@ -69,6 +68,7 @@ if (in_request("Action") == "NewAccount") {
|
|||
in_request("ON"),
|
||||
0,
|
||||
"",
|
||||
'',
|
||||
in_request("captcha_salt"),
|
||||
in_request("captcha")
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue