forked from kevinowino869/mitrobill
Custom Fields for registration and Profile, but not yet finished for upload picture
This commit is contained in:
@ -75,6 +75,7 @@ switch ($action) {
|
||||
run_hook('customer_view_edit_profile'); #HOOK
|
||||
$csrf_token = Csrf::generateAndStoreToken();
|
||||
$ui->assign('csrf_token', $csrf_token);
|
||||
$ui->assign('customFields', User::getFormCustomField($ui, false, $user['id']));
|
||||
$ui->display('customer/profile.tpl');
|
||||
break;
|
||||
case 'edit-profile-post':
|
||||
@ -154,6 +155,8 @@ switch ($action) {
|
||||
$user->email = $email;
|
||||
}
|
||||
|
||||
User::setFormCustomField($user['id']);
|
||||
|
||||
$user->save();
|
||||
|
||||
_log('[' . $user['username'] . ']: ' . Lang::T('User Updated Successfully'), 'User', $user['id']);
|
||||
|
Reference in New Issue
Block a user