mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Multi-db support
This commit is contained in:
parent
d4f25fe490
commit
bff3160dc2
@ -29,6 +29,8 @@ class DatabaseLookup
|
||||
} elseif ($guard == 'api') {
|
||||
if ($token = $request->header('X-Ninja-Token')) {
|
||||
LookupAccountToken::setServerByField('token', $token);
|
||||
} elseif ($email = $request->email) {
|
||||
LookupUser::setServerByField('email', $email);
|
||||
}
|
||||
} elseif ($guard == 'contact') {
|
||||
if ($key = request()->invitation_key) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user