Username with special characters

Hi,
my peertube instance is linked to an oauth2 server, so new users can sign up this way. Unfortunately the oauth-server policies for usernames allow some special characters e.g. john-doe.whoever
What can i do, to allow these users to register with their usernames?

Thx a lot for any suggestions!

Hello,

What plugin do you use?

I’m using auth-oauth2 v. 1.0.6

Then I suggest you to open an issue on https://github.com/codifyglobal/peertube-plugin-auth-oauth2 to ask the maintainer if it can sanitize the username value before sending it to peertube.

Thank you, I opened an issue and wait for response.