Improve RPC authentication query information
This commit is contained in:
parent
d5a947bf53
commit
82513d6e54
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ func (r *rpc) Info(c *fibre.Context) (interface{}, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *rpc) Auth(c *fibre.Context, auth string) (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) {
|
func (r *rpc) Query(c *fibre.Context, sql string, vars map[string]interface{}) (interface{}, error) {
|
||||||
|
|
Loading…
Reference in a new issue