Unable to get rid of username & password_confirm validation errors. #426
Replies: 2 comments
-
Finally made a breakthrough!! After some time, I decided to do something rather crazy. I decided to edit the vendor package directly i.e. *Sorry for the ramble |
Beta Was this translation helpful? Give feedback.
-
dont edit vendor files, when update new version, this will be overwritten. better publish it:
edit the published files |
Beta Was this translation helpful? Give feedback.
-
sigh* I am a little bit frustrated by this coz I have been going at it for hours. I am unable to get rid of validation errors caused by missing username and password confirmation when submitting the register form. I am using email only for credentials and not doing any password confirmations.
In
Config\Auth
which extends\Myth\Auth\Config\Auth
, I have made the following changes:In
AuthController.php
which extendsBaseController
, I have removed rules checking for username and password confirmationand it now looks like this:
Allowed fields and validation rules in
UserModel.php
which extends\Myth\Auth\Models\UserModel
looks like this:I'll appreciate any help on this.
Environment:
CodeIgniter version: 4.1.3
myth/auth version: 1.0.1
Beta Was this translation helpful? Give feedback.
All reactions