Explorar el Código

user login now with a role indicator

master
sp hace 4 años
padre
commit
be545e77b3
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      apiV1login.go

+ 1
- 0
apiV1login.go Ver fichero

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

Cargando…
Cancelar
Guardar