mirror of
				https://github.com/casdoor/casdoor.git
				synced 2025-10-31 17:37:50 +08:00 
			
		
		
		
	Add SignupApplication to user.
This commit is contained in:
		| @ -150,6 +150,7 @@ func (c *ApiController) Signup() { | |||||||
| 		IsAdmin:           false, | 		IsAdmin:           false, | ||||||
| 		IsGlobalAdmin:     false, | 		IsGlobalAdmin:     false, | ||||||
| 		IsForbidden:       false, | 		IsForbidden:       false, | ||||||
|  | 		SignupApplication: application.Name, | ||||||
| 		Properties:        map[string]string{}, | 		Properties:        map[string]string{}, | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | |||||||
| @ -283,6 +283,7 @@ func (c *ApiController) Login() { | |||||||
| 					IsAdmin:           false, | 					IsAdmin:           false, | ||||||
| 					IsGlobalAdmin:     false, | 					IsGlobalAdmin:     false, | ||||||
| 					IsForbidden:       false, | 					IsForbidden:       false, | ||||||
|  | 					SignupApplication: application.Name, | ||||||
| 					Properties:        properties, | 					Properties:        properties, | ||||||
| 				} | 				} | ||||||
| 				object.AddUser(user) | 				object.AddUser(user) | ||||||
|  | |||||||
| @ -42,6 +42,7 @@ type User struct { | |||||||
| 	IsAdmin           bool     `json:"isAdmin"` | 	IsAdmin           bool     `json:"isAdmin"` | ||||||
| 	IsGlobalAdmin     bool     `json:"isGlobalAdmin"` | 	IsGlobalAdmin     bool     `json:"isGlobalAdmin"` | ||||||
| 	IsForbidden       bool     `json:"isForbidden"` | 	IsForbidden       bool     `json:"isForbidden"` | ||||||
|  | 	SignupApplication string   `xorm:"varchar(100)" json:"signupApplication"` | ||||||
| 	Hash              string   `xorm:"varchar(100)" json:"hash"` | 	Hash              string   `xorm:"varchar(100)" json:"hash"` | ||||||
| 	PreHash           string   `xorm:"varchar(100)" json:"preHash"` | 	PreHash           string   `xorm:"varchar(100)" json:"preHash"` | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Yang Luo
					Yang Luo