|
@@ -63,8 +63,7 @@ class LoginController extends Controller
|
|
|
|
|
|
$existingPro = Pro::where('cell_number', $cellNumber)->first();
|
|
$existingPro = Pro::where('cell_number', $cellNumber)->first();
|
|
$existingProAppSession = AppSession::where('pro_id', $existingPro->id)->where('two_step_sms_auth_token', $confirmationToken)->first();
|
|
$existingProAppSession = AppSession::where('pro_id', $existingPro->id)->where('two_step_sms_auth_token', $confirmationToken)->first();
|
|
-
|
|
|
|
- return redirect()->to(config('stag.authUrl').'/auto-pro_log_in_with_session_key/'.$existingProAppSession->session_key);
|
|
|
|
|
|
+ return redirect()->to(config('stag.authUrl').'/pro_log_in_with_session_key/'.$existingProAppSession->session_key);
|
|
}
|
|
}
|
|
|
|
|
|
public function proDetails(Request $request){
|
|
public function proDetails(Request $request){
|
|
@@ -107,7 +106,6 @@ class LoginController extends Controller
|
|
}
|
|
}
|
|
|
|
|
|
$proSessionKey = $javaResponse['data'];
|
|
$proSessionKey = $javaResponse['data'];
|
|
- dd($proSessionKey);
|
|
|
|
return redirect()->to(config('stag.authUrl').'/pro_log_in_with_session_key/'.$proSessionKey);
|
|
return redirect()->to(config('stag.authUrl').'/pro_log_in_with_session_key/'.$proSessionKey);
|
|
}
|
|
}
|
|
|
|
|