immobiliare / backstage-plugin-ldap-auth

Backstage plugin to authenticate users to an external LDAP server
MIT License
37 stars 7 forks source link

Spaces in password #507

Closed pleroux-bell closed 1 year ago

pleroux-bell commented 1 year ago

Hi, We are currently using your plugin to perform LDAP authentication and we were wondering why spaces weren't allowed in the password?

I know it is done through the Line32 of the Form.tsx.

We have users who do have spaces in their usernames and this is causing them to be unable to log in.

Thanks!

antoniomuso commented 1 year ago

You can pass custom validator as input https://github.com/immobiliare/backstage-plugin-ldap-auth/blob/3f04a185de254d23604c7781869d9ccee1f73c6f/packages/ldap-auth/src/components/LoginPage/LoginPage.tsx#L39

pleroux-bell commented 1 year ago

Thanks you! I completely missed that