From 4915963c52968cd18657473564a81ab708828f4a Mon Sep 17 00:00:00 2001 From: Nekotoxin Date: Mon, 28 Feb 2022 19:42:11 +0800 Subject: [PATCH] fix: member No.0 bug (#516) * fix: member No.0 bug * Update account.go * fix: member No.0 bug * fix: member No.0 bug * Update account.go --- controllers/account.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controllers/account.go b/controllers/account.go index 7c8d5557..f7b79462 100644 --- a/controllers/account.go +++ b/controllers/account.go @@ -147,6 +147,8 @@ func (c *ApiController) Signup() { username = id } + userCount := object.GetUserCount(form.Organization, "", "") + 1 + user := &object.User{ Owner: form.Organization, Name: username, @@ -169,6 +171,7 @@ func (c *ApiController) Signup() { IsDeleted: false, SignupApplication: application.Name, Properties: map[string]string{}, + Ranking: userCount + 1, Karma: 0, }