Welcome Guest, Not a member yet? Register   Sign In
Help searching email in Shield
#1

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
Reply
#2

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 )
Reply
#3

See https://shield.codeigniter.com/getting_s...identities

Email is stored in the `auth_identities` table.
https://shield.codeigniter.com/customiza...ble_names/
Reply
#4

(This post was last modified: 02-10-2024, 06:16 AM by frocco.)

Thanks Everyone

(02-09-2024, 10:27 AM)InsiteFX Wrote: findByCredentials(array $credentials)

I believe that this returns the email, not tested

Thanks, I will test this and see.
Reply
#5

See https://shield.codeigniter.com/getting_s...identities

I am not finding getting_s...identities on that page
Reply
#6

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 )
Reply
#7

(02-11-2024, 12:40 AM)InsiteFX Wrote: UserIdentityModel.php

SEE: Method createEmailIdentity


PHP Code:
'secret'  => $credentials['email'], 

Is this the site you are talking abount?
I cannot find anything you are suggenting.

https://shield.codeigniter.com/
Reply
#8

See https://github.com/codeigniter4/shield/b...hp#L85-L90
Reply
#9

(02-10-2024, 09:03 AM)frocco Wrote: See https://shield.codeigniter.com/getting_s...identities

I am not finding getting_s...identities on that page

Click this link: https://shield.codeigniter.com/getting_s...identities
Reply
#10

(02-11-2024, 05:30 PM)kenjis Wrote:
(02-10-2024, 09:03 AM)frocco Wrote: See https://shield.codeigniter.com/getting_s...identities

I am not finding getting_s...identities on that page

Click this link: https://shield.codeigniter.com/getting_s...identities

Thank you
I found this in the UserIdentityModel
getIdentityBySecret
Reply




Theme © iAndrew 2016 - Forum software by © MyBB