From df75b85c9af231227cfaab0d722cad410b3ff55c Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Tue, 5 Jun 2018 00:02:22 -0300 Subject: Add login with positional parameters --- lib/Matrix/Client.pm6 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/Matrix') 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, -- cgit v1.2.3-70-g09d2