mirror of
				https://github.com/aclindsa/moneygo.git
				synced 2025-11-04 02:23:26 -05:00 
			
		
		
		
	User insecure cookies to allow non-HTTPS sessions
This commit is contained in:
		@@ -102,7 +102,7 @@ func NewSession(tx *Tx, r *http.Request, userid int64) (*NewSessionWriter, error
 | 
				
			|||||||
		Path:     "/",
 | 
							Path:     "/",
 | 
				
			||||||
		Domain:   r.URL.Host,
 | 
							Domain:   r.URL.Host,
 | 
				
			||||||
		Expires:  time.Now().AddDate(0, 1, 0), // a month from now
 | 
							Expires:  time.Now().AddDate(0, 1, 0), // a month from now
 | 
				
			||||||
		Secure:   true,
 | 
							Secure:   false,
 | 
				
			||||||
		HttpOnly: true,
 | 
							HttpOnly: true,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user