putResetPassword method
Implementation
@override
Future<bool> putResetPassword(
String accountId, String verificationCode, String newPassword) async {
try {
final String body = json.encode(
{'vcode': '$verificationCode', 'user_newpwd': '$newPassword'});
return await dio
.put('${ApiEndpoints.USER}/$accountId',
queryParameters: {'profile': 5}, data: body)
.then((value) => true);
} on Exception catch (e) {
throw HttpHelper.decodeErrorResponse(e,
tag: TAG,
logger: logger,
defaultErrorMessage: 'Failed to reset password',
meta: {'user': accountId});
}
}