Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth.validFields in .env file are ignored #207

Closed
Charliopoulos opened this issue Apr 23, 2020 · 2 comments
Closed

auth.validFields in .env file are ignored #207

Charliopoulos opened this issue Apr 23, 2020 · 2 comments

Comments

@Charliopoulos
Copy link

when delete the login per username option by adding the line
auth.validFields = ['email'] in the .env File, it is ignored.

@michalsn
Copy link
Contributor

michalsn commented May 3, 2020

Yeah... sorry but .env files are not ideal, so they don't support traditional php syntax for arrays. It gonna look a little odd, but this will do it:

auth.validFields.0 = 'email'
auth.validFields.1 = 'email'

Bare in mind that you have to declare both to override initial values.

@Charliopoulos
Copy link
Author

Thanks for the info! Helped me a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants