mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Movde dependents on macaron from modules/setting (#10050)
Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
		| @@ -319,7 +319,14 @@ func Config(ctx *context.Context) { | ||||
| 		if err := json.Unmarshal([]byte(sessionCfg.ProviderConfig), &realSession); err != nil { | ||||
| 			log.Error("Unable to unmarshall session config for virtualed provider config: %s\nError: %v", sessionCfg.ProviderConfig, err) | ||||
| 		} | ||||
| 		sessionCfg = realSession | ||||
| 		sessionCfg.Provider = realSession.Provider | ||||
| 		sessionCfg.ProviderConfig = realSession.ProviderConfig | ||||
| 		sessionCfg.CookieName = realSession.CookieName | ||||
| 		sessionCfg.CookiePath = realSession.CookiePath | ||||
| 		sessionCfg.Gclifetime = realSession.Gclifetime | ||||
| 		sessionCfg.Maxlifetime = realSession.Maxlifetime | ||||
| 		sessionCfg.Secure = realSession.Secure | ||||
| 		sessionCfg.Domain = realSession.Domain | ||||
| 	} | ||||
| 	sessionCfg.ProviderConfig = shadowPassword(sessionCfg.Provider, sessionCfg.ProviderConfig) | ||||
| 	ctx.Data["SessionConfig"] = sessionCfg | ||||
|   | ||||
		Reference in New Issue
	
	Block a user