mirror of https://github.com/MISP/MISP
fix: Changed the validation of newsread and change_pw to boolean
parent
272d893094
commit
1ee754f3e5
|
@ -111,8 +111,8 @@ class User extends AppModel {
|
|||
),
|
||||
),
|
||||
'change_pw' => array(
|
||||
'numeric' => array(
|
||||
'rule' => array('numeric'),
|
||||
'boolean' => array(
|
||||
'rule' => array('boolean'),
|
||||
//'message' => 'Your custom message here',
|
||||
'allowEmpty' => true,
|
||||
'required' => false,
|
||||
|
@ -157,8 +157,8 @@ class User extends AppModel {
|
|||
),
|
||||
),
|
||||
'newsread' => array(
|
||||
'numeric' => array(
|
||||
'rule' => array('numeric')
|
||||
'boolean' => array(
|
||||
'rule' => array('boolean')
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue