浏览代码

user login now with a role indicator

master
sp 4 年前
父节点
当前提交
be545e77b3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      apiV1login.go

+ 1
- 0
apiV1login.go 查看文件

@@ -48,6 +48,7 @@ func apiV1Login(w http.ResponseWriter, r *http.Request, ss *loan.Session) {

//format response
res.add("login", true)
res.add("role", ss.GetRole())
res.add("Biukop-Session", ss.Id)
res.add("Biukop-Mid", ss.Get("Biukop-Mid"))
res.add("sessionExpire", ss.ExpireStr())

正在加载...
取消
保存