Patrick Peng Sun před 8 roky
rodič
revize
aa4c168e81
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. +2
    -0
      main.go

+ 2
- 0
main.go Zobrazit soubor

@@ -119,6 +119,8 @@ func mpDomainAuthSecret(w http.ResponseWriter, r *http.Request) {
//redirect user to a URL "/pages/dashboard"
//
func initialRegistrationHandler(w http.ResponseWriter, r *http.Request) {
//TODO: verify url parameters and make sure its username is correctly set
//
expiration := time.Now().Add(10 * 365 * 24 * time.Hour)
str := time.Now().String()
cookie := http.Cookie{Name: "username", Value: str, Expires: expiration}

Načítá se…
Zrušit
Uložit