Add SignupApplication to user.

This commit is contained in:
Yang Luo
2021-06-21 10:22:47 +08:00
parent 64f85fdc6c
commit 9c233e42c0
3 changed files with 49 additions and 46 deletions

View File

@ -150,6 +150,7 @@ func (c *ApiController) Signup() {
IsAdmin: false,
IsGlobalAdmin: false,
IsForbidden: false,
SignupApplication: application.Name,
Properties: map[string]string{},
}

View File

@ -283,6 +283,7 @@ func (c *ApiController) Login() {
IsAdmin: false,
IsGlobalAdmin: false,
IsForbidden: false,
SignupApplication: application.Name,
Properties: properties,
}
object.AddUser(user)

View File

@ -42,6 +42,7 @@ type User struct {
IsAdmin bool `json:"isAdmin"`
IsGlobalAdmin bool `json:"isGlobalAdmin"`
IsForbidden bool `json:"isForbidden"`
SignupApplication string `xorm:"varchar(100)" json:"signupApplication"`
Hash string `xorm:"varchar(100)" json:"hash"`
PreHash string `xorm:"varchar(100)" json:"preHash"`