add jwt token as a std:;string
This commit is contained in:
parent
8bc22880a4
commit
96a96f4865
|
@ -45,10 +45,10 @@ class ZM_RtspServer_Authenticator : public xop::Authenticator {
|
|||
|
||||
if (query.has("jwt_token")) {
|
||||
const QueryParameter *jwt_token = query.get("jwt_token");
|
||||
user = zmLoadTokenUser(jwt_token->firstValue().c_str(), false);
|
||||
user = zmLoadTokenUser(jwt_token->firstValue(), false);
|
||||
} else if (query.has("token")) {
|
||||
const QueryParameter *jwt_token = query.get("token");
|
||||
user = zmLoadTokenUser(jwt_token->firstValue().c_str(), false);
|
||||
user = zmLoadTokenUser(jwt_token->firstValue(), false);
|
||||
} else if (strcmp(config.auth_relay, "none") == 0) {
|
||||
if (query.has("username")) {
|
||||
std::string username = query.get("username")->firstValue();
|
||||
|
|
Loading…
Reference in New Issue