We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bf5e68 commit d703297Copy full SHA for d703297
models/user/user.go
@@ -520,6 +520,8 @@ func GetUserSalt() (string, error) {
520
return hex.EncodeToString(rBytes), nil
521
}
522
523
+// Developer warning: The set of characters here can safely expand without a breaking change,
524
+// but characters removed from this set can cause user account linking to break
525
var invalidUsernameCharsRE = regexp.MustCompile(`[^\w-.]`)
526
var removeDiacriticsTransform = transform.Chain(norm.NFD, runes.Remove(runes.In(unicode.Mn)), norm.NFC)
527
var removeChars = strings.NewReplacer("'", "")
0 commit comments