Skip to content

Registration form - custom User fields triggering 'required' validation error #464

Answered by latearrival
latearrival asked this question in Q&A
Discussion options

You must be logged in to vote

OK, I solved this.

I had to add the three new fields to the $validFields array in app/Config/Auth.php. This step wasn't mentioned in https://github.com/lonnieezell/myth-auth/blob/develop/docs/extending.md

<?php namespace Config;

use CodeIgniter\Config\BaseConfig;

class Auth extends \Myth\Auth\Config\Auth
{
	
    public $validFields = [
           'email',
	   'first_name',
	   'last_name',
	   'mobile_phone',
   ];

etc

}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by latearrival
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant