You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cassio Santos edited this page Mar 30, 2014
·
2 revisions
Task
How to specify which fields a user can use as their 'identity' when logging in.
Solution
The configuration directive auth_identity_fields is used to control the fields used to look up user identities stored in ZfcUser. You can configure this directive (via your config/autoload/zfcuser.global.php override file) to one of four possible modes:
Authenticate via email address only:
'auth_identity_fields' => array( 'email' ),
Authenticate via username only:
'auth_identity_fields' => array( 'username' ),
Authenticate via both methods, with username field checked first: