Show ShowTokenModal after account creation

This commit is contained in:
2025-11-09 20:29:04 +01:00
parent b3083d37c3
commit c108859899
2 changed files with 18 additions and 10 deletions

View File

@@ -523,6 +523,11 @@ class _AccountRootPageState extends State<AccountRootPage> {
await acc.save();
Toaster.success("Success", 'Successfully Created a new account');
showDialog<void>(
context: context,
builder: (context) => ShowTokenModal(account: acc, isAfterRegister: true),
);
} catch (exc, trace) {
ApplicationLog.error('Failed to create user account: ' + exc.toString(), trace: trace);
Toaster.error("Error", 'Failed to create user account');
@@ -737,7 +742,7 @@ class _AccountRootPageState extends State<AccountRootPage> {
void _showTokenModal(BuildContext context, AppAuth acc) {
showDialog<void>(
context: context,
builder: (context) => ShowTokenModal(account: acc),
builder: (context) => ShowTokenModal(account: acc, isAfterRegister: false),
);
}
}