Skip to content

Commit

Permalink
add null check for argument "params" in CallResetPasswordFunctionAsync (
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobOscarGunnarsson authored Nov 24, 2022
1 parent 89fd0b8 commit 2381d69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## vNext (TBD)

### Enhancements
* Improved error message when null is passed as argument to params for EmailPasswordAuth.CallResetPasswordFunctionAsync. (Issue [#3011](https://github.com/realm/realm-dotnet/issues/3011))
* Removed backing fields of generated classes' properties which should provide minor improvements to memory used by Realm Objects (Issue [#2647](https://github.com/realm/realm-dotnet/issues/2994))
* Added two extension methods on `IDictionary` to get an `IQueryable` collection wrapping the dictionary's values:
* `dictionary.AsRealmQueryable()` allows you to get a `IQueryable<T>` from `IDictionary<string, T>` that can be then treated as a regular queryable collection and filtered/ordered with LINQ or `Filter(string)`.
Expand Down
1 change: 1 addition & 0 deletions Realm/Realm/Sync/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ public Task CallResetPasswordFunctionAsync(string email, string password, params
{
Argument.NotNullOrEmpty(email, nameof(email));
Argument.NotNullOrEmpty(password, nameof(password));
Argument.NotNull(functionArgs, nameof(functionArgs));

var tcs = new TaskCompletionSource<object>();
_app.Handle.EmailPassword.CallResetPasswordFunction(email, password, functionArgs.ToNativeJson(), tcs);
Expand Down

0 comments on commit 2381d69

Please sign in to comment.