-
Notifications
You must be signed in to change notification settings - Fork 117
"username" cannot be used as local strategy usernameField #294
Comments
@Creiger not that I know of. Have you done any debugging to figure out the cause? If you can publish a repo with a breaking example we could be more helpful. |
Same here. When I'm calling app.get('auth') it looks like this: {
"local": {
"usernameField": "Sean"
}
} It seems my config "usernameField": "username" is getting replaced by my computer username EDIT: Found the issue: https://github.com/feathersjs/feathers-configuration/blob/master/src/index.js#L28 |
Wat! Ok thanks for the hunting @sean-nicholas. It's an issue with feathers-config or something that should be guarded against on windows. @Creiger are you running on windows? |
@ekryski Yes, i am also running on Windows. |
@Creiger There is actually a way to escape configs with
|
I totally forgot about this! Thank you @sean-nicholas. It't is also documented here:
So I think we can close this. |
When i override local strategy settings with "usernameField" : "username", it does not work. If i use any other fieldname, it works. Is this some restriction?
The text was updated successfully, but these errors were encountered: