mirror of https://github.com/h44z/wg-portal.git
				
				
				
			
		
			
				
	
	
		
			23 lines
		
	
	
		
			826 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			826 B
		
	
	
	
		
			Go
		
	
	
	
package model
 | 
						|
 | 
						|
type Error struct {
 | 
						|
	Code    int    `json:"Code"`
 | 
						|
	Message string `json:"Message"`
 | 
						|
}
 | 
						|
 | 
						|
type Settings struct {
 | 
						|
	MailLinkOnly              bool                   `json:"MailLinkOnly"`
 | 
						|
	PersistentConfigSupported bool                   `json:"PersistentConfigSupported"`
 | 
						|
	SelfProvisioning          bool                   `json:"SelfProvisioning"`
 | 
						|
	ApiAdminOnly              bool                   `json:"ApiAdminOnly"`
 | 
						|
	WebAuthnEnabled           bool                   `json:"WebAuthnEnabled"`
 | 
						|
	MinPasswordLength         int                    `json:"MinPasswordLength"`
 | 
						|
	AvailableBackends         []SettingsBackendNames `json:"AvailableBackends"`
 | 
						|
	LoginFormVisible          bool                   `json:"LoginFormVisible"`
 | 
						|
}
 | 
						|
 | 
						|
type SettingsBackendNames struct {
 | 
						|
	Id   string `json:"Id"`
 | 
						|
	Name string `json:"Name"`
 | 
						|
}
 |