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 GitHub - codifyglobal/peertube-plugin-auth-oauth2: A PeerTube server plugin that adds support for external authentication via an OAuth 2.0 provider. 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.