diff options
Diffstat (limited to 'lib/Matrix')
-rw-r--r-- | lib/Matrix/Client.pm6 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Matrix/Client.pm6 b/lib/Matrix/Client.pm6 index 9867c77..d21d077 100644 --- a/lib/Matrix/Client.pm6 +++ b/lib/Matrix/Client.pm6 @@ -30,13 +30,13 @@ method login(Str $username, Str $pass) returns Bool { return if $!logged; # Handle POST - my $data = to-json { + my $post-data = to-json { type => "m.login.password", user => $username, password => $pass }; - my $res = $.post("/login", $data); + my $res = $.post("/login", $post-data); spurt $!auth-file, $res.content; my $data = from-json($res.content); |