1
0
Fork 0
forked from External/grumble

Make SuperUser a regular user (don't special case it).

This commit is contained in:
Mikkel Krautz 2011-04-11 21:18:46 +02:00
parent 91b83edf9c
commit 5607764dfa
5 changed files with 23 additions and 22 deletions

View file

@ -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")
}