mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for client portal permalink login
This commit is contained in:
parent
82a744d987
commit
a418656f59
@ -91,8 +91,10 @@ class LoginController extends Controller
|
||||
$credentials = $request->only('email', 'password');
|
||||
$account = false;
|
||||
|
||||
// resovle the email to a contact/account
|
||||
if ($accountKey = request()->account_key) {
|
||||
// resolve the email to a contact/account
|
||||
if (! Utils::isNinja() && Account::count() == 1) {
|
||||
$account = Account::first();
|
||||
} elseif ($accountKey = request()->account_key) {
|
||||
$account = Account::whereAccountKey($accountKey)->first();
|
||||
} else {
|
||||
$subdomain = Utils::getSubdomain(\Request::server('HTTP_HOST'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user