Skip to content
This repository was archived by the owner on Feb 11, 2018. It is now read-only.

Commit d806bc4

Browse files
author
cammygames
committed
Update login.php
This is a temp fix only. After Christmas we will push the proper update
1 parent 98f3905 commit d806bc4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

classes/login.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,8 @@ private function dologinWithPostData()
104104
if (password_verify($_POST['user_password'], $result_row->user_password_hash)) {
105105

106106
if ($result_row->user_level <> 0) {
107-
$verify = json_decode(file_get_contents('http://cyberbyte.org.uk/hooks/cyberworks/messages.php?id=' . $settings['id']));
108-
if (!isset($verify->verify)) {
109-
if ($verify->version > floatval($settings['version'])) $_SESSION['update'] = true;
107+
//$verify = json_decode(file_get_contents('http://cyberbyte.org.uk/hooks/cyberworks/messages.php?id=' . $settings['id']));
108+
//if (!isset($verify->verify)) {
110109
$_SESSION['2factor'] = 0;
111110
if (!empty($result_row->twoFactor)) {
112111
if ($settings['2factor']) $_SESSION['2factor'] = 1; else {
@@ -141,13 +140,13 @@ private function dologinWithPostData()
141140

142141
multiDB();
143142
logAction($_SESSION['user_name'], 'Successful Login (' . $_SERVER['REMOTE_ADDR'] . ')', 2);
144-
} else {
143+
/*} else {
145144
if (isset($verify->message)) {
146145
$this->errors[] = $verify->message;
147146
} else {
148147
$this->errors[] = "Verifcation Failed";
149148
}
150-
}
149+
}*/
151150
} else {
152151
$this->errors[] = "User is banned.";
153152
logAction($_POST['user_name'], 'Login Failed - Banned User (' . $_SERVER['REMOTE_ADDR'] . ')', 3);

0 commit comments

Comments
 (0)