Merge pull request #9250 from id/fix-typo-in-http-error-code

fix: typo in http error code
This commit is contained in:
Ivan Dyachkov 2022-10-31 10:23:55 +01:00 committed by GitHub
commit aeca8833f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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