mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-11-03 23:55:44 +00:00 
			
		
		
		
	feat: custom background image config option
This commit is contained in:
		@@ -48,6 +48,7 @@ type AppContext struct {
 | 
			
		||||
	GenericName           string   `json:"genericName"`
 | 
			
		||||
	Domain                string   `json:"domain"`
 | 
			
		||||
	ForgotPasswordMessage string   `json:"forgotPasswordMessage"`
 | 
			
		||||
	BackgroundImage       string   `json:"backgroundImage"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Totp request is the request for the totp endpoint
 | 
			
		||||
 
 | 
			
		||||
@@ -33,6 +33,7 @@ type Config struct {
 | 
			
		||||
	LoginTimeout            int    `mapstructure:"login-timeout"`
 | 
			
		||||
	LoginMaxRetries         int    `mapstructure:"login-max-retries"`
 | 
			
		||||
	FogotPasswordMessage    string `mapstructure:"forgot-password-message" validate:"required"`
 | 
			
		||||
	BackgroundImage         string `mapstructure:"background-image" validate:"required"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Server configuration
 | 
			
		||||
@@ -44,6 +45,7 @@ type HandlersConfig struct {
 | 
			
		||||
	GenericName           string
 | 
			
		||||
	Title                 string
 | 
			
		||||
	ForgotPasswordMessage string
 | 
			
		||||
	BackgroundImage       string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// OAuthConfig is the configuration for the providers
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user