Improve RPC authentication query information

This commit is contained in:
Tobie Morgan Hitchcock 2017-11-16 20:46:17 +00:00
parent d5a947bf53
commit 82513d6e54

View file

@ -27,7 +27,7 @@ func (r *rpc) Info(c *fibre.Context) (interface{}, error) {
}
func (r *rpc) Auth(c *fibre.Context, auth string) (interface{}, error) {
return nil, checkBearer(c, auth, func() error { return nil })
return c.Get("auth"), checkBearer(c, auth, func() error { return nil })
}
func (r *rpc) Query(c *fibre.Context, sql string, vars map[string]interface{}) (interface{}, error) {