forked from External/grumble
Make SuperUser a regular user (don't special case it).
This commit is contained in:
parent
91b83edf9c
commit
5607764dfa
5 changed files with 23 additions and 22 deletions
3
user.go
3
user.go
|
|
@ -16,6 +16,7 @@ import (
|
|||
type User struct {
|
||||
Id uint32
|
||||
Name string
|
||||
Password string
|
||||
CertHash string
|
||||
Email string
|
||||
TextureBlob string
|
||||
|
|
@ -29,7 +30,7 @@ func NewUser(id uint32, name string) (user *User, err os.Error) {
|
|||
if id < 0 {
|
||||
return nil, os.NewError("Invalid user id")
|
||||
}
|
||||
if len(name) == 0 || name == "SuperUser" {
|
||||
if len(name) == 0 {
|
||||
return nil, os.NewError("Invalid username")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue