diff options
author | imoore76 <imoore76@users.noreply.github.com> | 2016-01-08 13:52:24 -0500 |
---|---|---|
committer | imoore76 <imoore76@users.noreply.github.com> | 2016-01-08 13:52:24 -0500 |
commit | 11206435d3656c20b0f552942f58881836e311d6 (patch) | |
tree | 5c093bf37eb6e35c2defd55398acd489b650c737 /endpoints/lib/auth/Builtin.php | |
parent | b2711b1bccc38d52214288c2a40232ddb67efb24 (diff) | |
parent | 5fcef1bce2081eaa1ca81a2220e74df3ef9933d8 (diff) | |
download | phpvirtualbox-11206435d3656c20b0f552942f58881836e311d6.zip phpvirtualbox-11206435d3656c20b0f552942f58881836e311d6.tar.gz phpvirtualbox-11206435d3656c20b0f552942f58881836e311d6.tar.bz2 |
Merge pull request #12 from imoore76/develop
5.0-5 from develop
Diffstat (limited to 'endpoints/lib/auth/Builtin.php')
-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'])); |