fix: Change password using email authentication
This commit is contained in:
parent
9808e3fc0a
commit
ecc60efea9
|
|
@ -1,3 +1,6 @@
|
||||||
|
## [0.8.11] - 19nd Feb 2022
|
||||||
|
- fix: Change password using email authentication
|
||||||
|
|
||||||
## [0.8.10] - 19nd Feb 2022
|
## [0.8.10] - 19nd Feb 2022
|
||||||
- chore: Increase default thumbnail size to 800
|
- chore: Increase default thumbnail size to 800
|
||||||
- fix: sortRooms should be triggered right before onSync is called
|
- fix: sortRooms should be triggered right before onSync is called
|
||||||
|
|
|
||||||
|
|
@ -2232,9 +2232,8 @@ class Client extends MatrixApi {
|
||||||
AuthenticationData? auth,
|
AuthenticationData? auth,
|
||||||
bool? logoutDevices}) async {
|
bool? logoutDevices}) async {
|
||||||
final userID = this.userID;
|
final userID = this.userID;
|
||||||
if (userID == null) return;
|
|
||||||
try {
|
try {
|
||||||
if (oldPassword != null) {
|
if (oldPassword != null && userID != null) {
|
||||||
auth = AuthenticationPassword(
|
auth = AuthenticationPassword(
|
||||||
identifier: AuthenticationUserIdentifier(user: userID),
|
identifier: AuthenticationUserIdentifier(user: userID),
|
||||||
password: oldPassword,
|
password: oldPassword,
|
||||||
|
|
@ -2252,7 +2251,7 @@ class Client extends MatrixApi {
|
||||||
false)) {
|
false)) {
|
||||||
rethrow;
|
rethrow;
|
||||||
}
|
}
|
||||||
if (oldPassword == null) {
|
if (oldPassword == null || userID == null) {
|
||||||
rethrow;
|
rethrow;
|
||||||
}
|
}
|
||||||
return changePassword(
|
return changePassword(
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
name: matrix
|
name: matrix
|
||||||
description: Matrix Dart SDK
|
description: Matrix Dart SDK
|
||||||
version: 0.8.10
|
version: 0.8.11
|
||||||
homepage: https://famedly.com
|
homepage: https://famedly.com
|
||||||
repository: https://gitlab.com/famedly/company/frontend/famedlysdk.git
|
repository: https://gitlab.com/famedly/company/frontend/famedlysdk.git
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue