소스 검색

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())

Loading…
취소
저장