Skip to content

Commit

Permalink
Correct loginWithPassword
Browse files Browse the repository at this point in the history
  • Loading branch information
tanutapi committed Mar 23, 2020
1 parent a2e3742 commit 5c296ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
## 1.0.7
## 1.0.8

- Allow passing email to loginWithPassword.

## 1.0.7

- **Don't use this release**

## 1.0.5 - 1.0.6

- Pin rxdart version to 0.22.6
Expand Down
4 changes: 2 additions & 2 deletions lib/src/meteor_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,9 @@ class MeteorClient {

var selector;
if (!user.contains('@')) {
selector = {'email': user};
} else {
selector = {'username': user};
} else {
selector = {'email': user};
}

call('login', [
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: dart_meteor
description: This library make connection between meteor backend and flutter app easily. Design to work seamlessly with StreamBuilder and FutureBuilder.
version: 1.0.7
version: 1.0.8
homepage: https://github.com/tanutapi/dart_meteor
author: Tanut Apiwong <[email protected]>

Expand Down

0 comments on commit 5c296ab

Please sign in to comment.