emqx/emqx-auth-redis

how to set auth.redis.auth_cmd = with redis eval

zxzgit opened this issue · 1 comments

set emqx_auth_redis.conf:
auth.redis.auth_cmd = eval "return redis.call('hmget','emqx:user:'..ARGV[1],'password')" 0 %u

get error
[Redis] Command: "eval \"return redis.call('hmget','emqx:user:'..ARGV[1],'password')\" 0 %u" failed: <<"ERR value is not an integer or out of range">>

Hi, @zxzgit Sorry for the late reply,Do you resolve this problem?