Help searching email in Shield |
Hello,
I am able to find records from the users table in Shield by username, I also what to filter by email. I cannot get this to work. I get email field not found, but I can display email using users.email. What is the correct syntax to get records by email? Thanks
findByCredentials(array $credentials)
I believe that this returns the email, not tested What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
See https://shield.codeigniter.com/getting_s...identities
Email is stored in the `auth_identities` table. https://shield.codeigniter.com/customiza...ble_names/
See https://shield.codeigniter.com/getting_s...identities
I am not finding getting_s...identities on that page
UserIdentityModel.php
SEE: Method createEmailIdentity PHP Code: 'secret' => $credentials['email'], What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(02-11-2024, 12:40 AM)InsiteFX Wrote: UserIdentityModel.php Is this the site you are talking abount? I cannot find anything you are suggenting. https://shield.codeigniter.com/ (02-10-2024, 09:03 AM)frocco Wrote: See https://shield.codeigniter.com/getting_s...identities Click this link: https://shield.codeigniter.com/getting_s...identities (02-11-2024, 05:30 PM)kenjis Wrote:(02-10-2024, 09:03 AM)frocco Wrote: See https://shield.codeigniter.com/getting_s...identities Thank you I found this in the UserIdentityModel getIdentityBySecret |
Welcome Guest, Not a member yet? Register Sign In |