error masterkey when caps is different
This commit is contained in:
parent
f7d10cf21c
commit
a0ea2768d8
@ -83,7 +83,7 @@ class Auth extends Controller {
|
|||||||
$password = password_hash($password, PASSWORD_DEFAULT);
|
$password = password_hash($password, PASSWORD_DEFAULT);
|
||||||
|
|
||||||
$master = $this->request->getJsonVar('master');
|
$master = $this->request->getJsonVar('master');
|
||||||
$masterkey = getenv('masterkey');
|
$masterkey = getenv('MASTERKEY');
|
||||||
|
|
||||||
if($master != $masterkey) {
|
if($master != $masterkey) {
|
||||||
return $this->fail('Invalid master key.', 401);
|
return $this->fail('Invalid master key.', 401);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user