diff --git a/lib/rest/users.dart b/lib/rest/users.dart index f0860bb..144f36a 100644 --- a/lib/rest/users.dart +++ b/lib/rest/users.dart @@ -9,7 +9,7 @@ abstract class _ClientUsersMixin implements _ClientWrapper { 'Content-Type': 'application/json', }, body: json.encode({ - 'user': credentials.name, + 'user': credentials.name ?? credentials.email, 'password': credentials.password, })) .then((response) {