mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-02 22:34:56 -04:00
encryption and dht work
This commit is contained in:
parent
7831deabd3
commit
c63eee26fd
9 changed files with 246 additions and 159 deletions
|
@ -9,6 +9,7 @@ import 'package:go_router/go_router.dart';
|
|||
|
||||
import '../components/default_app_bar.dart';
|
||||
import '../components/signal_strength_meter.dart';
|
||||
import '../entities/entities.dart';
|
||||
import '../providers/local_accounts.dart';
|
||||
import '../providers/logins.dart';
|
||||
import '../providers/window_control.dart';
|
||||
|
@ -59,9 +60,9 @@ class NewAccountPageState extends ConsumerState<NewAccountPage> {
|
|||
title: title);
|
||||
|
||||
// Log in the new account by default with no pin
|
||||
final ok = await logins
|
||||
.loginWithNone(localAccount.identityMaster.masterRecordKey);
|
||||
assert(ok == true, 'login with none should never fail');
|
||||
final ok = await logins.login(localAccount.identityMaster.masterRecordKey,
|
||||
EncryptionKeyType.none, '');
|
||||
assert(ok, 'login with none should never fail');
|
||||
} on Exception catch (_) {
|
||||
await imws.delete();
|
||||
rethrow;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue