From f70027ffbedce10f412868a7bf9b0b67b113f1b1 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Sun, 20 Jan 2019 11:48:48 +0100 Subject: Rev: 4423 --- .../www/policy/private/session/accountInfo-pre.php | 23 ++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'mayor-orig/www/policy/private/session/accountInfo-pre.php') diff --git a/mayor-orig/www/policy/private/session/accountInfo-pre.php b/mayor-orig/www/policy/private/session/accountInfo-pre.php index 226ecd26..9b54adf5 100644 --- a/mayor-orig/www/policy/private/session/accountInfo-pre.php +++ b/mayor-orig/www/policy/private/session/accountInfo-pre.php @@ -34,21 +34,40 @@ changeAccountInfo($userAccount, $toPolicy); + } elseif ($action=='tokenLogout') { + + revokeTokens(); + } elseif ($action=='userSettingsModify') { $changeSkinTo = readVariable($_POST['changeSkinTo'],'enum',null,$SKINSSHOW); setUserSettings($userAccount, $toPolicy, array('skin'=>$changeSkinTo)); } elseif ($action=='generateEduroamId') { - + $eduroamDOMAIN = readVariable($_POST['eduroamDOMAIN'],'enum',null,$eduroamDOMAINS); + $eduroamPASSWORD = @exec('pwgen'); + if (__TANAR===true) { + $eduroamAFFILIATION = 'faculty'; + } elseif (__DIAK===true) { + $eduroamAFFILIATION = 'student'; + } else { + $eduroamAFFILIATION = 'staff'; + } + createEduroamSettings(array('userAccount'=>$userAccount,'policy'=> $toPolicy, + 'eduroamUID' => $userAccount, + 'eduroamDOMAIN'=>$eduroamDOMAIN, + 'eduroamAFFILIATION'=>$eduroamAFFILIATION, + 'eduroamPASSWORD'=>$eduroamPASSWORD)); } elseif ($action=='modoifyEduroamId') { - + } $userInfo = getUserInfo($userAccount, $toPolicy); // keretrendszer attribĂștumai $accountInfo = getAccountInfo($userAccount, $toPolicy); // backend attribĂștumai $ADAT = getUserSettings($userAccount, $toPolicy); + $ADAT['activity'] = getMyActivity(); + if ($toPolicy=='private' && _POLICY ==='private') { $ADAT['eduroamAdat'] = getEduroamSettings($userAccount, $toPolicy); // dump($ADAT); -- cgit v1.2.3