mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Add support for deleting user accounts
Users can now delete their own accounts by clicking a link in the account edit form and confirming the deletion on a follow-up page. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
f4ee1278e5
commit
7df8dc8bcb
5 changed files with 45 additions and 0 deletions
|
@ -123,6 +123,8 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) {
|
|||
$_REQUEST['Action'] = "DisplayAccount";
|
||||
} elseif ($tokens[3] == 'update') {
|
||||
$_REQUEST['Action'] = "UpdateAccount";
|
||||
} elseif ($tokens[3] == 'delete') {
|
||||
$_REQUEST['Action'] = "DeleteAccount";
|
||||
} else {
|
||||
header("HTTP/1.0 404 Not Found");
|
||||
include "./404.php";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue