v6.8.1
This commit is contained in:
parent
fedd76fc67
commit
a2698557ea
@ -1,3 +1,8 @@
|
||||
## [6.8.1] - 2023-07-03
|
||||
|
||||
* Fix auth bug.
|
||||
* Pubspec.yaml dependency updates.
|
||||
|
||||
## [6.8.0] - 2023-07-03
|
||||
|
||||
* UI fixes.
|
||||
|
||||
@ -48,7 +48,7 @@ import 'package:flutter/services.dart' show rootBundle;
|
||||
Future<User?> getUser() async =>
|
||||
(await (NyStorage.read<User>(SharedKey.authUser)));
|
||||
|
||||
Future appWooSignal(Function(WooSignal) api) async {
|
||||
Future appWooSignal(Function(WooSignal api) api) async {
|
||||
return await api(WooSignal.instance);
|
||||
}
|
||||
|
||||
|
||||
@ -226,7 +226,7 @@ class _AccountLandingPageState extends NyState<AccountLandingPage> {
|
||||
String? token = wpUserLoginResponse.data!.userToken;
|
||||
String userId = wpUserLoginResponse.data!.userId.toString();
|
||||
User user = User.fromUserAuthResponse(token: token, userId: userId);
|
||||
await Auth.set(user, key: SharedKey.authUser);
|
||||
await user.save(SharedKey.authUser);
|
||||
|
||||
showToastNotification(context,
|
||||
title: trans("Hello"),
|
||||
|
||||
@ -236,7 +236,7 @@ class _AccountRegistrationPageState extends NyState<AccountRegistrationPage> {
|
||||
String? token = wpUserRegisterResponse.data!.userToken;
|
||||
String userId = wpUserRegisterResponse.data!.userId.toString();
|
||||
User user = User.fromUserAuthResponse(token: token, userId: userId);
|
||||
await Auth.set(user, key: SharedKey.authUser);
|
||||
await user.save(SharedKey.authUser);
|
||||
|
||||
await WPJsonAPI.instance.api((request) => request.wpUpdateUserInfo(token,
|
||||
firstName: firstName, lastName: lastName));
|
||||
|
||||
@ -1142,10 +1142,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: woosignal
|
||||
sha256: "2daf353de3ff3e6b2087bf886fc9cd66effc8e78e3e1c71eee755ec978204a6b"
|
||||
sha256: "5059a0f531149e3bd9ee70a24e76315644663462509c84771d3bb8ca403726ab"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.6.1"
|
||||
version: "3.7.1"
|
||||
wp_json_api:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
# Official WooSignal App Template for WooCommerce
|
||||
|
||||
# Label StoreMax
|
||||
# Version: 6.8.0
|
||||
# Version: 6.8.1
|
||||
# Author: Anthony Gordon
|
||||
# Homepage: https://woosignal.com
|
||||
# Documentation: https://woosignal.com/docs/app/label-storemax
|
||||
@ -30,7 +30,7 @@ dependencies:
|
||||
analyzer: ^5.12.0
|
||||
intl: ^0.18.0
|
||||
nylo_framework: ^5.1.1
|
||||
woosignal: ^3.6.1
|
||||
woosignal: ^3.7.1
|
||||
wp_json_api: ^3.3.2
|
||||
cached_network_image: ^3.2.3
|
||||
package_info_plus: ^4.0.2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user