Hi,
i need to add a new field into the authentification of shield.
This field comes NOT from the users-table this field comes from a second table. I need to check the entered values with the values from db.
For that i start at the login page and also i add the language-parts in the lang-file.
i add a new field in view/login
Now i need to add the field to the login-process, here i failed.
I need to add a validation rule with called a function to get and check some datas in touch with the values of the newfield.
Play around with the Validation.php brings no goal.
1) How (in wich file) i can add a validation function for the newfield, to get and check the values from the second-table?
2) How (in wich file) i cann add data-to the session after successful log in?
Thanks a lot.
i need to add a new field into the authentification of shield.
This field comes NOT from the users-table this field comes from a second table. I need to check the entered values with the values from db.
For that i start at the login page and also i add the language-parts in the lang-file.
i add a new field in view/login
Code:
<input type="number" class="form-control fs-13px h-45px" id="floatingCipInput" name="newfield" inputmode="number" autocomplete="current-newfield" placeholder="<?= lang('Auth.cip') ?>" value="<?= old('newfield') ?>" required>Now i need to add the field to the login-process, here i failed.
I need to add a validation rule with called a function to get and check some datas in touch with the values of the newfield.
Play around with the Validation.php brings no goal.
1) How (in wich file) i can add a validation function for the newfield, to get and check the values from the second-table?
2) How (in wich file) i cann add data-to the session after successful log in?
Thanks a lot.
eed NameFile command...I got the following error, since it seems that the command looks for the seeder file into the main app folder.