diff options
author | Kyle D <kdumontnu@gmail.com> | 2024-01-03 16:48:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-03 18:48:20 -0600 |
commit | 54acf7b0d4b57907a6d8a2ac470744f185adf0b5 (patch) | |
tree | a9c6a5df44c445b5301ad8f7e3e3218f68fde5f7 /custom/conf | |
parent | 657b23d6359bbbb25b3dcfee233cae0735997188 (diff) | |
download | gitea-54acf7b0d4b57907a6d8a2ac470744f185adf0b5.tar.gz gitea-54acf7b0d4b57907a6d8a2ac470744f185adf0b5.zip |
Normalize oauth email username (#28561)
Diffstat (limited to 'custom/conf')
-rw-r--r-- | custom/conf/app.example.ini | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index d58309f141..d1dd0a141b 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -1529,6 +1529,10 @@ LEVEL = Info ;; userid = use the userid / sub attribute ;; nickname = use the nickname attribute ;; email = use the username part of the email attribute +;; Note: `nickname` and `email` options will normalize input strings using the following criteria: +;; - diacritics are removed +;; - the characters in the set `['ยด\x60]` are removed +;; - the characters in the set `[\s~+]` are replaced with `-` ;USERNAME = nickname ;; ;; Update avatar if available from oauth2 provider. |