diff options
-rw-r--r-- | lib/Matrix/Client.pm6 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Matrix/Client.pm6 b/lib/Matrix/Client.pm6 index 89c464c..1ef4426 100644 --- a/lib/Matrix/Client.pm6 +++ b/lib/Matrix/Client.pm6 @@ -18,7 +18,11 @@ submethod TWEAK { } -method login(Str :$username, Str :$password, Str :$device-id?) { +multi method login(Str $username, Str $password) { + $.login(:$username, :$password); +} + +multi method login(Str :$username, Str :$password) { my $post-data = { type => "m.login.password", user => $username, |