fix: typo in http error code

This commit is contained in:
Ivan Dyachkov 2022-10-27 18:14:46 +02:00
parent ed8286aff7
commit d4adf8532e
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ authorize(Req) ->
)
end;
{error, _} ->
return_unauthorized(<<"WORNG_USERNAME_OR_PWD">>, <<"Check username/password">>)
return_unauthorized(?WRONG_USERNAME_OR_PWD, <<"Check username/password">>)
end;
{bearer, Token} ->
case emqx_dashboard_admin:verify_token(Token) of