feat: add admin badge on profiles
This commit is contained in:
parent
d25545fa03
commit
9bba037eab
6 changed files with 58 additions and 2 deletions
|
@ -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}$`)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue