fix: pg-act/auth/approval.php syntax

This commit is contained in:
Miraty 2023-01-23 01:16:15 +01:00
parent 312292d06a
commit 7c7e996967

View file

@ -4,7 +4,7 @@ if ($_SESSION['type'] !== 'testing')
output(403, _('This account is already approved.')); output(403, _('This account is already approved.'));
if (isset(query('select', 'approval-keys', ['key' => $_POST['key']], 'key')[0]) !== true) if (isset(query('select', 'approval-keys', ['key' => $_POST['key']], 'key')[0]) !== true)
output(403, _('This approval key is not available. It has been mistyped, used for another account, or has expired.'); output(403, _('This approval key is not available. It has been mistyped, used for another account, or has expired.'));
query('delete', 'approval-keys', ['key' => $_POST['key']]); query('delete', 'approval-keys', ['key' => $_POST['key']]);