mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-07 00:47:00 +03:00
Delete users based on username, not id
This commit is contained in:
parent
5b4bcc34cc
commit
e429005134
2 changed files with 2 additions and 5 deletions
|
@ -85,7 +85,7 @@ case "update":
|
|||
break;
|
||||
|
||||
case "delete":
|
||||
if (delete_user($_POST['id']) !== FALSE) {
|
||||
if ($emailaddress != '' and delete_user($emailaddress) !== FALSE) {
|
||||
jtable_respond(null, 'delete');
|
||||
} else {
|
||||
jtable_respond(null, 'error', 'Could not delete user');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue