mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-05-03 12:49:21 +02:00
Account activation by email small fix
This commit is contained in:
parent
327f8a81b5
commit
5f8b5503d1
@ -116,11 +116,11 @@ if (isset($_GET['success']) && empty($_GET['success'])) {
|
|||||||
// Find a match
|
// Find a match
|
||||||
$user = mysql_select_single("SELECT `id`, `active` FROM `znote_accounts` WHERE `account_id`='$auid' AND `activekey`='$akey' LIMIT 1;");
|
$user = mysql_select_single("SELECT `id`, `active` FROM `znote_accounts` WHERE `account_id`='$auid' AND `activekey`='$akey' LIMIT 1;");
|
||||||
if ($user !== false) {
|
if ($user !== false) {
|
||||||
$user = $user['id'];
|
$user = (int) $user['id'];
|
||||||
$active = $user['active'];
|
$active = (int) $user['active'];
|
||||||
// Enable the account to login
|
// Enable the account to login
|
||||||
if ($active == 0) {
|
if ($active == 0) {
|
||||||
mysql_update("UPDATE `znote_accounts` SET `active`='1' WHERE `id`='$user' LIMIT 1;");
|
mysql_update("UPDATE `znote_accounts` SET `active`='1' WHERE `id`= $user LIMIT 1;");
|
||||||
}
|
}
|
||||||
echo '<h1>Congratulations!</h1> <p>Your account has been created. You may now login to create a character.</p>';
|
echo '<h1>Congratulations!</h1> <p>Your account has been created. You may now login to create a character.</p>';
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user