Nebular: Has Nebular Auth login with username ?

Created on 18 Jan 2018  路  5Comments  路  Source: akveo/nebular

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 ?

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 ?

All 5 comments

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

Was this page helpful?
0 / 5 - 0 ratings