mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Use username from the database if one is provided by the user
This fixes a bug where the new user name input by the user was invalid, causing the account deletion link and the form action to be wrong. Signed-off-by: Marcel Korpel <marcel.korpel@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
f2ff9782a5
commit
7927a6decd
3 changed files with 9 additions and 7 deletions
|
@ -61,7 +61,7 @@ if (isset($_COOKIE["AURSID"])) {
|
|||
$row["AccountTypeID"], $row["Suspended"], $row["Email"],
|
||||
"", "", $row["RealName"], $row["LangPreference"],
|
||||
$row["IRCNick"], $row["PGPKey"], $PK,
|
||||
$row["InactivityTS"] ? 1 : 0, $row["ID"]);
|
||||
$row["InactivityTS"] ? 1 : 0, $row["ID"], $row["Username"]);
|
||||
} else {
|
||||
print __("You do not have permission to edit this account.");
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ if (isset($_COOKIE["AURSID"])) {
|
|||
in_request("E"), in_request("P"), in_request("C"),
|
||||
in_request("R"), in_request("L"), in_request("I"),
|
||||
in_request("K"), in_request("PK"), in_request("J"),
|
||||
in_request("ID"));
|
||||
in_request("ID"), $row["Username"]);
|
||||
}
|
||||
} else {
|
||||
if (has_credential(CRED_ACCOUNT_SEARCH)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue