diff options
author | Matias Linares <matiaslina@openmailbox.org> | 2018-06-05 00:02:22 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@openmailbox.org> | 2018-06-05 00:02:22 -0300 |
commit | df75b85c9af231227cfaab0d722cad410b3ff55c (patch) | |
tree | dbb97242151e05fa4fcb536579c6845ef07be96b /lib/Matrix | |
parent | dbd7a63d8af46f51abb48b39b9b80b341504ad74 (diff) | |
download | perl6-matrix-client-df75b85c9af231227cfaab0d722cad410b3ff55c.tar.gz |
Add login with positional parameters
Diffstat (limited to 'lib/Matrix')
-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, |