Commit 750b2d75 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

log the user ...

parent fabe9258
......@@ -672,7 +672,7 @@ class tx_nG6_eid {
} elseif($type == 'install') {
$res = tx_nG6_db::select_user_by_username("admin_install");
if ($res != null){
$res = tx_nG6_db::finalize_installation($res["uid"],
$res2 = tx_nG6_db::finalize_installation($res["uid"],
trim(t3lib_div::_GP('username')),
trim(t3lib_div::_GP('first_name')),
trim(t3lib_div::_GP('last_name')),
......@@ -682,6 +682,12 @@ class tx_nG6_eid {
trim(t3lib_div::_GP('project_name')),
trim(t3lib_div::_GP('description'))
);
// if there is a result, then log the user
if ($res2) {
$GLOBALS['TSFE'] = t3lib_div::makeInstance('tslib_fe', $GLOBALS['TYPO3_CONF_VARS'], t3lib_div::_GP('id'), '');
$GLOBALS['TSFE']->initFEuser();
$GLOBALS['TSFE']->fe_user->createUserSession(array('uid' =>$res["uid"]));
}
}
print $res;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment