Nebular Auth has support with username ? My Api will auth with username and password. I need config with Nebular Auth. But Login form in Nebular only support email. Can I config with Username ?
Hi @nhdanh, please take a look at https://github.com/akveo/nebular/issues/12 and https://akveo.github.io/nebular/#/docs/auth/configuring-ui.
I have to close the issue as https://github.com/akveo/nebular/blob/master/CONTRIBUTING.md#-got-a-question-or-problem
Hi @nnixaa,
i've had a look at the configuring-ui documentation but cannot find so much informations about customizing the login with a username instead of an email.
I've found (https://akveo.github.io/nebular/docs/auth/configuring-ui#remove-redirect-delay UI Settings) :
export const defaultSettings: any = {
forms: {
login: {
redirectDelay: 500, // delay before redirect after a successful login, while success message is shown to the user
strategy: 'email', // strategy id key.
[...]
},
},
}
It seems that the field 'strategy' would be a good fit for this use case but what value could be set here ? 'usename' ? Is there a dedicated doc about this ?
Sadly, I'm needing the same customization. I'm using a library from backend which only accepts username as the field name instead of email. @mushu8 did you find a solution?
@jonastandinco same here, and no custom property was provided for this case. Maybe we can fork this repository to implement some new behavior for our case and submit a Pull Request.
Same here, some configurable solution would be very nice
Most helpful comment
Hi @nnixaa,
i've had a look at the configuring-ui documentation but cannot find so much informations about customizing the login with a username instead of an email.
I've found (https://akveo.github.io/nebular/docs/auth/configuring-ui#remove-redirect-delay UI Settings) :
export const defaultSettings: any = { forms: { login: { redirectDelay: 500, // delay before redirect after a successful login, while success message is shown to the user strategy: 'email', // strategy id key. [...] }, }, }It seems that the field 'strategy' would be a good fit for this use case but what value could be set here ? 'usename' ? Is there a dedicated doc about this ?