summaryrefslogtreecommitdiff
path: root/lib/Matrix/Client.pm6
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Matrix/Client.pm6')
-rw-r--r--lib/Matrix/Client.pm66
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,