mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-10 02:32:56 +08:00
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
This commit is contained in:
@@ -147,6 +147,8 @@ func (c *ApiController) Signup() {
|
|||||||
username = id
|
username = id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
userCount := object.GetUserCount(form.Organization, "", "") + 1
|
||||||
|
|
||||||
user := &object.User{
|
user := &object.User{
|
||||||
Owner: form.Organization,
|
Owner: form.Organization,
|
||||||
Name: username,
|
Name: username,
|
||||||
@@ -169,6 +171,7 @@ func (c *ApiController) Signup() {
|
|||||||
IsDeleted: false,
|
IsDeleted: false,
|
||||||
SignupApplication: application.Name,
|
SignupApplication: application.Name,
|
||||||
Properties: map[string]string{},
|
Properties: map[string]string{},
|
||||||
|
Ranking: userCount + 1,
|
||||||
Karma: 0,
|
Karma: 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user