Browse Source

fix login

Maxim Sokhatsky 11 years ago
parent
commit
7cdc951a70
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/microsoft.erl

+ 2 - 2
src/microsoft.erl

@@ -13,8 +13,8 @@ api_event(_, Args, _)->
     JSArgs = string:tokens(Args,"\\\\"),
     JSArgs = string:tokens(Args,"\\\\"),
     J = string:join(JSArgs,""),
     J = string:join(JSArgs,""),
     error_logger:info_msg("J: ~p",[J]),
     error_logger:info_msg("J: ~p",[J]),
-    [_,_|K1] = J,
-    [_,_|K2] = lists:reverse(K1),
+    [_|K1] = J,
+    [_|K2] = lists:reverse(K1),
     K = lists:reverse(K2),
     K = lists:reverse(K2),
     error_logger:info_msg("K: ~p",[K]),
     error_logger:info_msg("K: ~p",[K]),
     Struct = n2o_json:decode(K),
     Struct = n2o_json:decode(K),