Revize 751
Přidáno uživatelem Michal Kliment před téměř 14 roky(ů)
freenetis/trunk/kohana/application/controllers/users.php | ||
---|---|---|
$user_data->middle_name = $form_data['middle_name'];
|
||
$user_data->surname = $form_data['surname'];
|
||
$user_data->post_title = $form_data['post_title'];
|
||
|
||
if ($this->acl_check_edit(get_class($this),'phone',$user_model->member_id))
|
||
$user_data->phone = $form_data['phone'];
|
||
|
||
if ($this->acl_check_edit(get_class($this),'email',$user_model->member_id))
|
||
$user_data->email = $form_data['email'];
|
||
|
||
if ($this->acl_check_edit(get_class($this),'comment',$user_model->member_id))
|
||
$user_data->comment = $form_data['comment'];
|
||
|
||
if ($user_data->save())
|
||
{
|
||
... | ... | |
$form->input('surname')->label(url_lang::lang('texts.surname').':')->rules('required|length[3,60]');
|
||
$form->input('post_title')->label(url_lang::lang('texts.post title').':')->rules('length[3,30]');
|
||
$form->group('')->label(url_lang::lang('texts.Password'));
|
||
$form->password('password')->label(url_lang::lang('texts.password').':')->rules('required|length[3,50]')->class('required');
|
||
$form->password('password')->label(url_lang::lang('texts.password').':')->rules('required|length[3,50]')->class('password');
|
||
$form->password('confirm_password')->label(url_lang::lang('texts.confirm password').':')->rules('required|length[3,50]')->matches($form->password);
|
||
$form->group('')->label(url_lang::lang('texts.Contact information'));
|
||
$form->input('phone')->label(url_lang::lang('texts.phone').':')->rules('required|length[9,40]')->callback(array($this, 'valid_phone'));
|
||
... | ... | |
$user_data->post_title = $form_data['post_title'];
|
||
$user_data->phone = $form_data['phone'];
|
||
$user_data->email = $form_data['email'];
|
||
$user_data->comment = $form_data['comment'];
|
||
$user_data->type = User_Model::$user;
|
||
$user_data->member_id = $member_id;
|
||
$user_data->application_password = security::generate_password();
|
Také k dispozici: Unified diff
Opravena editace a pridavani uzivatelu - nektere informace se neukladaly...