improved security for impex

pull/28/head
A1Gard 1 year ago
parent 1f43d04cb8
commit f1149b712a

@ -375,9 +375,15 @@ class ImpexController extends Controller
}
public function login(){
if (!auth()->check()){
return abort(403);
}
return \Auth::guard('customer')->loginUsingId(Customer::inRandomOrder()->first()->id);
}
public function loginas($tel){
if (!auth()->check()){
return abort(403);
}
return \Auth::guard('customer')->loginUsingId(Customer::whereMobile($tel)->first()->id);
}
}

Loading…
Cancel
Save