mirror of https://github.com/MISP/MISP
sync
validation on server.authkey having minlenght of 40 like user.authkey.pull/63/head
parent
03578fecdd
commit
016df03ba7
|
@ -38,6 +38,11 @@ class Server extends AppModel {
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'authkey' => array(
|
'authkey' => array(
|
||||||
|
'minlength' => array(
|
||||||
|
'rule' => array('minlength', 40),
|
||||||
|
'message' => 'A authkey of a minimum length of 40 is required.',
|
||||||
|
'required' => true,
|
||||||
|
),
|
||||||
'notempty' => array(
|
'notempty' => array(
|
||||||
'rule' => array('notempty'),
|
'rule' => array('notempty'),
|
||||||
'message' => 'Please enter a valid authentication key.',
|
'message' => 'Please enter a valid authentication key.',
|
||||||
|
|
Loading…
Reference in New Issue