google config call

This commit is contained in:
CHIEFSOFT\ameye
2023-07-08 16:59:38 -04:00
parent 7e0da0e72c
commit c934fb85f9
+6 -2
View File
@@ -112,9 +112,13 @@ class WrenchOauth extends BaseController
switch ($endpoint) {
case 'authstart':
// may not need to call back end , juet get the configurations
$local_out=['google','1234567'];
switch($in["auth_type"]){
case 'GOOGLE':
$local_out["GOOGLE_CLIENT_ID"] = $this->getSiteConfigurations("google.google_client_id");
$local_out["GOOGLE_CLIENT_SECRET"] = $this->getSiteConfigurations("google.google_client_secret");
break;
}
$call_backend=false;
break;
case 'authlogin':