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

(This post was last modified: 08-14-2024, 03:42 AM by JustJohnQ.)

max_byte validation is part of \shield\Authentication\Passwords\ValidationRules.php.
If you look at the comments in \shield\Authentication\Passwords\ValidationRules.php, it states that if you want to use that class you have to add it to Config/Validation.php in the $rulesets array.
Modify the config/Validation.php file like this (according to ChatGPT):
PHP Code:
<?php

namespace Config;

use 
CodeIgniter\Validation\Validation as BaseValidation;
use 
CodeIgniter\Shield\Authentication\Passwords\ValidationRules// Add this line

class Validation extends BaseValidation
{
    /**
    * Stores the classes that contain the
    * rules that are available.
    *
    * @var string[]
    */
    public $ruleSets = [
        \CodeIgniter\Validation\Rules::class,
        \CodeIgniter\Validation\FormatRules::class,
        \CodeIgniter\Validation\FileRules::class,
        \CodeIgniter\Validation\CreditCardRules::class,
        ValidationRules::class, // Add this line
    ];

    // Your existing code

Reply


Messages In This Thread
RE: Keep on getting error about max_byte - by JustJohnQ - 08-14-2024, 03:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB