wefra/models/register.php

28 lines
791 B
PHP
Raw Normal View History

<?php
// -------------------------------------------------------- //
//TODO @BL or @DD: creating UT for the registration process //
// -------------------------------------------------------- //
$oConf = new ClassConfig();
$oTrans = new ClassTranslation();
$oUser = new ClassUser();
$oForm = new ClassForm();
// Creating user in ERP and in WEFRA
// ..
if(isset($_POST['formRegisterButtonSubmit'])){
//clean $_POST data from any hack try
foreach($_POST as $k=>$v){
if($_POST[$k]!="formRegisterFieldPassword" or $_POST[$k]!="formRegisterFieldConfirmPassword"){
$_POST[$k] = $oForm->cleanData($v);
} else {
continue;
}
}
2020-11-27 13:10:57 +00:00
//create user in Wefra and link the user to ERP
$res = $oUser->createUser($_POST);
}
// ..
// ENDOF creating user in ERP and in WeFra