💄 Optimized album page

This commit is contained in:
2024-07-26 17:35:54 +08:00
parent 277ba69513
commit ae87e9ad31
4 changed files with 167 additions and 118 deletions

View File

@ -52,7 +52,7 @@ class _SignInPopupState extends State<SignInPopup> with ProtocolListener {
}
void performAction() async {
final AuthProvider provider = Get.find();
final AuthProvider auth = Get.find();
final username = _usernameController.value.text;
final password = _passwordController.value.text;
@ -61,7 +61,9 @@ class _SignInPopupState extends State<SignInPopup> with ProtocolListener {
setState(() => _isBusy = true);
try {
await provider.signin(context, username, password);
await auth.signin(context, username, password);
await auth.refreshAuthorizeStatus();
await auth.refreshUserProfile();
} on RiskyAuthenticateException catch (e) {
showDialog(
context: context,