Welcome Guest, Not a member yet? Register   Sign In
Keep on getting error about max_byte
#1

(This post was last modified: 08-14-2024, 02:36 AM by Fabio-Zeus-Soft.)

Hi everyone and thanks in advance,
I'm working with CodeIgniter 4 and Shield, but every time I try to use max_byte
rule I get this error:
PHP Code:
CodeIgniter\Validation\Exceptions\ValidationException

"max_byte" is not a valid rule

This is happening on Login, where I'm using the config suggested in Shield
documentation:
PHP Code:
public $login = [
        'username' => [
            'label' => 'Auth.email',
            'rules' => [
                'required',
                'max_length[254]',
                'valid_email'
            ],
        ],
        'current-password' => [
            'label' => 'Auth.password',
                'rules' => [
                    'required',
                    'max_byte[72]',
                ],
            'errors' => [
                'max_byte' => 'Auth.errorPasswordTooLongBytes',
            ]
        ],
    ]; 
So I don't understand why it says that the rule is not valid.
Reply


Messages In This Thread
Keep on getting error about max_byte - by Fabio-Zeus-Soft - 08-14-2024, 02:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB