浏览代码

add todo

master
Patrick Peng Sun 8 年前
父节点
当前提交
aa4c168e81
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      main.go

+ 2
- 0
main.go 查看文件

@@ -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}

正在加载...
取消
保存