feat: add admin badge on profiles

This commit is contained in:
Sam 2023-06-05 16:29:18 +02:00 committed by Jake
parent a6526b7f00
commit fad5bd5e4a
6 changed files with 58 additions and 2 deletions

View file

@ -113,6 +113,12 @@ func (u User) NumProviders() (numProviders int) {
return numProviders
}
type Badge int32
const (
BadgeAdmin Badge = 1 << 0
)
// usernames must match this regex
var usernameRegex = regexp.MustCompile(`^[\w-.]{2,40}$`)