Remove password for React change

This commit is contained in:
Hillel Coren 2022-06-20 14:22:00 +03:00
parent 266db2eecb
commit 0807af8908
1 changed files with 14 additions and 17 deletions

View File

@ -245,23 +245,20 @@ class _DashboardScreenState extends State<DashboardScreen>
final data = serializers.serializeWith(
AccountEntity.serializer, account);
passwordCallback(
context: context,
callback: (password, idToken) async {
store.dispatch(StartSaving());
WebClient()
.put(url, credentials.token,
data: json.encode(data),
password: password,
idToken: idToken)
.then((dynamic _) {
store.dispatch(StopSaving());
WebUtils.reloadBrowser();
}).catchError((Object error) {
store.dispatch(StopSaving());
showErrorDialog(context: context, message: error);
});
});
store.dispatch(StartSaving());
WebClient()
.put(
url,
credentials.token,
data: json.encode(data),
)
.then((dynamic _) {
store.dispatch(StopSaving());
WebUtils.reloadBrowser();
}).catchError((Object error) {
store.dispatch(StopSaving());
showErrorDialog(context: context, message: error);
});
},
icon: Icon(MdiIcons.react),
),