Compare commits

...

2 Commits

4 changed files with 710 additions and 241 deletions

View File

@@ -1475,5 +1475,11 @@
"lotteryMultiplierRequired": "Please enter a multiplier",
"lotteryMultiplierRange": "Multiplier must be between 1 and 10",
"dropToShare": "Drop to share",
"friendsOnline": "Friends Online"
"friendsOnline": "Friends Online",
"createAccountAlmostThere": "Almost There",
"createAccountAlmostThereHint": "You're one step away from joining the Solar Network! Please solve the captcha puzzle shows next.",
"createAccountNotice": "Things you need to know before you create an account:",
"createAccountConfirmEmail": "After your account being created, you need go to your email inbox to active your account to get permission to use all features.",
"createAccountNoAltAccounts": "Multiple or alternative accounts are banned from the Solar Network, that will violates our terms of services.",
"createAccountAgreeTerms": "I've read these terms and agree to the terms of service."
}

View File

@@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:gap/gap.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:island/pods/message.dart';
import 'package:island/pods/network.dart';
import 'package:island/pods/userinfo.dart';
import 'package:island/screens/notification.dart';
@@ -470,6 +471,7 @@ class AccountScreen extends HookConsumerWidget {
final apiClient = ref.watch(apiClientProvider);
showLoadingModal(context);
await apiClient.delete('/pass/accounts/me/sessions/current');
await resetDatabase(ref);
if (!context.mounted) return;
hideLoadingModal(context);
final userNotifier = ref.read(userInfoProvider.notifier);

File diff suppressed because it is too large Load Diff

View File

@@ -271,6 +271,7 @@ void showErrorAlert(dynamic err, {IconData? icon}) {
),
const Gap(8),
Text(text),
const Gap(8),
],
),
actions: [