summaryrefslogtreecommitdiffstats
path: root/admin/survey/api/class.ApiController.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-05-27 13:08:29 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2024-05-27 13:08:29 +0200
commit75160b12821f7f4299cce7f0b69c83c1502ae071 (patch)
tree27e25e4ccaef45f0c58b22831164050d1af1d4db /admin/survey/api/class.ApiController.php
parentprvi-commit (diff)
download1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.gz
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.bz2
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.lz
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.xz
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.zst
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.zip
Diffstat (limited to 'admin/survey/api/class.ApiController.php')
-rw-r--r--admin/survey/api/class.ApiController.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/admin/survey/api/class.ApiController.php b/admin/survey/api/class.ApiController.php
index b35d867..40028d7 100644
--- a/admin/survey/api/class.ApiController.php
+++ b/admin/survey/api/class.ApiController.php
@@ -121,11 +121,10 @@ class ApiController{
// TUKAJ PRIDE DODATEN POGOJ CE GRE ZA PRIJAVO PREKO GOOGLA, FB... - V TEM PRIMERU NIMAMO PASSWORDA
if(!isset($this->data['Login']['password']) && isset($this->data['Login']['special_login'])){
- global $APP_special_login_key;
// DODATI FUNKCIJO checkSpecialLogin v SurveyMobile, kjer se pogleda samo če obstaja mail in nastavi ustrezno user id
if($this->data['Login']['special_login'] == 'nekajzavsakslucajv4x7in6' ||
- $this->data['Login']['special_login'] == $APP_special_login_key){
+ $this->data['Login']['special_login'] == AppSettings::getInstance()->getSetting('maza-APP_special_login_key')){
$user_id = $sm->googleLogin($this->data['Login']['username']);
}
}