Commit 5b043380 authored by Taegyun Kim's avatar Taegyun Kim

edit auth

parent fec534a1
...@@ -13,8 +13,6 @@ on_client_authenticate(#{username := Username, password := Password}, AuthResult ...@@ -13,8 +13,6 @@ on_client_authenticate(#{username := Username, password := Password}, AuthResult
if if
(Username == undefined) and (Password == undefined) -> (Username == undefined) and (Password == undefined) ->
{stop, AuthResult#{username => anonymous, auth_result => success, anonymous => false}}; {stop, AuthResult#{username => anonymous, auth_result => success, anonymous => false}};
(Username == '') and (Password == '') ->
{stop, AuthResult#{username => anonymous, auth_result => success, anonymous => false}};
true -> true ->
{ok, AuthResult} {ok, AuthResult}
end. end.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment