mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fixes for key login
This commit is contained in:
parent
a3e89ddf21
commit
4b3e09faf8
@ -123,6 +123,8 @@ class ContactKeyLogin
|
|||||||
return redirect($this->setRedirectPath());
|
return redirect($this->setRedirectPath());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//28-02-2022 middleware should not allow this to progress as we should have redirected by this stage.
|
||||||
|
abort(404, "Unable to authenticate.");
|
||||||
|
|
||||||
return $next($request);
|
return $next($request);
|
||||||
}
|
}
|
||||||
|
@ -46,6 +46,9 @@ class SetInviteDb
|
|||||||
if($entity == "pay")
|
if($entity == "pay")
|
||||||
$entity = "invoice";
|
$entity = "invoice";
|
||||||
|
|
||||||
|
if(!in_array($entity, ['invoice','quote','credit','recurring_invoice']))
|
||||||
|
abort(404,'I could not find this resource.');
|
||||||
|
|
||||||
/* Try and determine the DB from the invitation key STRING*/
|
/* Try and determine the DB from the invitation key STRING*/
|
||||||
if (config('ninja.db.multi_db_enabled')) {
|
if (config('ninja.db.multi_db_enabled')) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user