diff options
author | Kyle D <kdumontnu@gmail.com> | 2024-01-04 01:48:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-04 01:48:20 +0100 |
commit | 54acf7b0d4b57907a6d8a2ac470744f185adf0b5 (patch) | |
tree | a9c6a5df44c445b5301ad8f7e3e3218f68fde5f7 /custom | |
parent | Fix wrapping of label list (#28684) (diff) | |
download | forgejo-54acf7b0d4b57907a6d8a2ac470744f185adf0b5.tar.xz forgejo-54acf7b0d4b57907a6d8a2ac470744f185adf0b5.zip |
Normalize oauth email username (#28561)
Diffstat (limited to 'custom')
-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. |