@@ -73,8 +73,8 @@ discard block |
||
73 | 73 | "options" => ["table" => "cms_roles", "field_value" => "id", "field_label" => 'name'], |
74 | 74 | 'required' => true, |
75 | 75 | ]; |
76 | - $this->form[] = array("label"=>"Password","name"=>"password","type"=>"password","help"=>"Please leave empty if not change"); |
|
77 | - $this->form[] = array("label"=>"Password Confirmation","name"=>"password_confirmation","type"=>"password","help"=>"Please leave empty if not change"); |
|
76 | + $this->form[] = array("label"=>"Password","name"=>"password","type"=>"password","help"=>"Please leave empty if not change"); |
|
77 | + $this->form[] = array("label"=>"Password Confirmation","name"=>"password_confirmation","type"=>"password","help"=>"Please leave empty if not change"); |
|
78 | 78 | |
79 | 79 | # END FORM DO NOT REMOVE THIS LINE |
80 | 80 | } |
@@ -102,9 +102,9 @@ discard block |
||
102 | 102 | # END CONFIGURATION DO NOT REMOVE THIS LINE |
103 | 103 | } |
104 | 104 | public function hook_before_edit(&$postdata,$id) { |
105 | - unset($postdata['password_confirmation']); |
|
106 | - } |
|
107 | - public function hook_before_add(&$postdata) { |
|
108 | - unset($postdata['password_confirmation']); |
|
109 | - } |
|
105 | + unset($postdata['password_confirmation']); |
|
106 | + } |
|
107 | + public function hook_before_add(&$postdata) { |
|
108 | + unset($postdata['password_confirmation']); |
|
109 | + } |
|
110 | 110 | } |
@@ -73,8 +73,8 @@ discard block |
||
73 | 73 | "options" => ["table" => "cms_roles", "field_value" => "id", "field_label" => 'name'], |
74 | 74 | 'required' => true, |
75 | 75 | ]; |
76 | - $this->form[] = array("label"=>"Password","name"=>"password","type"=>"password","help"=>"Please leave empty if not change"); |
|
77 | - $this->form[] = array("label"=>"Password Confirmation","name"=>"password_confirmation","type"=>"password","help"=>"Please leave empty if not change"); |
|
76 | + $this->form[] = array("label"=>"Password", "name"=>"password", "type"=>"password", "help"=>"Please leave empty if not change"); |
|
77 | + $this->form[] = array("label"=>"Password Confirmation", "name"=>"password_confirmation", "type"=>"password", "help"=>"Please leave empty if not change"); |
|
78 | 78 | |
79 | 79 | # END FORM DO NOT REMOVE THIS LINE |
80 | 80 | } |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | $this->button_save = true; |
102 | 102 | # END CONFIGURATION DO NOT REMOVE THIS LINE |
103 | 103 | } |
104 | - public function hook_before_edit(&$postdata,$id) { |
|
104 | + public function hook_before_edit(&$postdata, $id) { |
|
105 | 105 | unset($postdata['password_confirmation']); |
106 | 106 | } |
107 | 107 | public function hook_before_add(&$postdata) { |