diff options
Diffstat (limited to 'models/org.go')
-rw-r--r-- | models/org.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/models/org.go b/models/org.go index 4a81814bae..9908386f0d 100644 --- a/models/org.go +++ b/models/org.go @@ -109,8 +109,12 @@ func CreateOrganization(org, owner *User) (err error) { } org.LowerName = strings.ToLower(org.Name) - org.Rands = GetUserSalt() - org.Salt = GetUserSalt() + if org.Rands, err = GetUserSalt(); err != nil { + return err + } + if org.Salt, err = GetUserSalt(); err != nil { + return err + } org.UseCustomAvatar = true org.MaxRepoCreation = -1 org.NumTeams = 1 |