Add option to bypass fucking CRM
This commit is contained in:
parent
60b34fcf42
commit
f6bac999ad
2 changed files with 4 additions and 1 deletions
|
|
@ -38,6 +38,9 @@ MAIL_LIST_PASSERELLE=passerelle.ldc@ldc.fr
|
|||
|
||||
BOUTIQUE_ARCHADIA_OP_CODE=16
|
||||
|
||||
# FUCK THE CRM JUST LOGIN (needs debug mode)
|
||||
NOCRM=true
|
||||
|
||||
AWS_ACCESS_KEY_ID=
|
||||
AWS_SECRET_ACCESS_KEY=
|
||||
AWS_DEFAULT_REGION=us-east-1
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ class CustomerController extends Controller
|
|||
/** @var \App\Lib\LDCCRM\ApiV1 */
|
||||
$crm = app('crmApi');
|
||||
$result = $crm->loginCustomer($email, $password);
|
||||
if ($result->status === "OK") {
|
||||
if ($result->status === "OK" || (config('app.debug') && env('NOCRM'))) {
|
||||
/** @var \Illuminate\Auth\SessionGuard */
|
||||
$guard = Auth::guard('customer');
|
||||
$guard->login($customer, $remember);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue