diff options
author | Ian Moore <imoore76@yahoo.com> | 2016-01-08 13:10:56 -0500 |
---|---|---|
committer | Ian Moore <imoore76@yahoo.com> | 2016-01-08 13:10:56 -0500 |
commit | e5394ddab08b57e2d0b550a831f2ec7b82e86568 (patch) | |
tree | 16789a171282daa19569ad92898d7eb056bd2731 /endpoints/lib | |
parent | fc220fd7ca316a3256e00be193e7bafbe3e44744 (diff) | |
download | phpvirtualbox-e5394ddab08b57e2d0b550a831f2ec7b82e86568.zip phpvirtualbox-e5394ddab08b57e2d0b550a831f2ec7b82e86568.tar.gz phpvirtualbox-e5394ddab08b57e2d0b550a831f2ec7b82e86568.tar.bz2 |
PHP7 support
Diffstat (limited to 'endpoints/lib')
-rw-r--r-- | endpoints/lib/auth/Builtin.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/endpoints/lib/auth/Builtin.php b/endpoints/lib/auth/Builtin.php index 30e5a82..fea93ab 100644 --- a/endpoints/lib/auth/Builtin.php +++ b/endpoints/lib/auth/Builtin.php @@ -167,7 +167,8 @@ class phpvbAuthBuiltin implements phpvbAuth { global $_SESSION; // Must be an admin - if(!$_SESSION['admin']) break; + if(!$_SESSION['admin']) + return; // Use main / auth server $vbox = new vboxconnector(true); @@ -175,7 +176,7 @@ class phpvbAuthBuiltin implements phpvbAuth { // See if it exists if(!$skipExistCheck && $vbox->vbox->getExtraData('phpvb/users/'.$vboxRequest['u'].'/pass')) - break; + return; if($vboxRequest['p']) $vbox->vbox->setExtraData('phpvb/users/'.$vboxRequest['u'].'/pass', hash('sha512', $vboxRequest['p'])); |