mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
enhance: validate settings value before save
This commit is contained in:
parent
d70e37c857
commit
d67b8428e4
8 changed files with 83 additions and 26 deletions
|
@ -1,13 +1,13 @@
|
|||
package settings
|
||||
|
||||
type Casdoor struct {
|
||||
Endpoint string `json:"endpoint"`
|
||||
ClientId string `json:"client_id"`
|
||||
ClientSecret string `json:"client_secret"`
|
||||
Certificate string `json:"certificate"`
|
||||
Organization string `json:"organization"`
|
||||
Application string `json:"application"`
|
||||
RedirectUri string `json:"redirect_uri"`
|
||||
Endpoint string `json:"endpoint" protected:"true"`
|
||||
ClientId string `json:"client_id" protected:"true"`
|
||||
ClientSecret string `json:"client_secret" protected:"true"`
|
||||
Certificate string `json:"certificate" protected:"true"`
|
||||
Organization string `json:"organization" protected:"true"`
|
||||
Application string `json:"application" protected:"true"`
|
||||
RedirectUri string `json:"redirect_uri" protected:"true"`
|
||||
}
|
||||
|
||||
var CasdoorSettings = Casdoor{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue