fix: fix the No.0 bug(for all sign up methods) (#535)

This commit is contained in:
Nekotoxin
2022-03-04 13:06:21 +08:00
committed by GitHub
parent 178cf7945d
commit 4d48517be9
2 changed files with 2 additions and 3 deletions

View File

@ -149,8 +149,6 @@ func (c *ApiController) Signup() {
username = id
}
userCount := object.GetUserCount(form.Organization, "", "") + 1
user := &object.User{
Owner: form.Organization,
Name: username,
@ -173,7 +171,6 @@ func (c *ApiController) Signup() {
IsDeleted: false,
SignupApplication: application.Name,
Properties: map[string]string{},
Ranking: userCount + 1,
Karma: 0,
}