Closed paianoa closed 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
The oauth plugin uses authplain as the underlying backend so all standard restrictions on usernames apply.
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