cosmocode / dokuwiki-plugin-oauth

Generic oAuth1 and oAuth2 plugin for DokuWiki
http://www.dokuwiki.org/plugin:oauth
30 stars 78 forks source link

'@' replaced with '_' when email is configured as user #123

Closed paianoa closed 2 years ago

paianoa commented 2 years ago

I noticed if I set email address as user field the '@' char is replaced by '_'. This change is visible at the top bar where user data is shown.

It seems OAuthManager class does this on line 202 [1] by calling $auth->cleanUser.

Is it possible to change that behaviour by showing email address as provided by oauth server?

1: https://github.com/cosmocode/dokuwiki-plugin-oauth/blob/dd3786f3efab63e1042f270e316108eda986e95f/OAuthManager.php#L202

splitbrain commented 2 years ago

The oauth plugin uses authplain as the underlying backend so all standard restrictions on usernames apply.