Преглед изворни кода

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…
Откажи
Сачувај