fix: Changed the validation of newsread and change_pw to boolean

pull/2339/head
Andras Iklody 2017-07-13 17:07:49 +02:00 committed by GitHub
parent 272d893094
commit 1ee754f3e5
1 changed files with 4 additions and 4 deletions

View File

@ -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')
),
),
);