fix: Add 3pid email for password reset

This commit is contained in:
krille-chan 2023-12-26 16:32:47 +01:00
parent eb879936a6
commit 1f3d88d09c
No known key found for this signature in database
3 changed files with 18 additions and 11 deletions

View file

@ -28,6 +28,7 @@ class Settings3PidView extends StatelessWidget {
],
),
body: MaxWidthBody(
withScrolling: false,
child: FutureBuilder<List<ThirdPartyIdentifier>?>(
future: controller.request,
builder: (

View file

@ -20,6 +20,14 @@ class SettingsPasswordView extends StatelessWidget {
padding: const EdgeInsets.all(16.0),
child: Column(
children: [
Center(
child: Icon(
Icons.key_outlined,
color: Theme.of(context).dividerColor,
size: 80,
),
),
const SizedBox(height: 16),
TextField(
controller: controller.oldPasswordController,
obscureText: true,

View file

@ -53,7 +53,7 @@ class SettingsSecurityView extends StatelessWidget {
if (capabilities?.mChangePassword?.enabled == true ||
error != null) ...[
ListTile(
leading: const Icon(Icons.password_outlined),
leading: const Icon(Icons.key_outlined),
trailing: error != null
? null
: const Icon(Icons.chevron_right_outlined),
@ -85,7 +85,6 @@ class SettingsSecurityView extends StatelessWidget {
? null
: () => context.go('/rooms/settings/security/3pid'),
),
const Divider(),
],
ListTile(
leading: const Icon(Icons.block_outlined),
@ -95,7 +94,6 @@ class SettingsSecurityView extends StatelessWidget {
context.go('/rooms/settings/security/ignorelist'),
),
if (Matrix.of(context).client.encryption != null) ...{
const Divider(thickness: 1),
if (PlatformInfos.isMobile)
ListTile(
leading: const Icon(Icons.lock_outlined),
@ -103,14 +101,6 @@ class SettingsSecurityView extends StatelessWidget {
title: Text(L10n.of(context)!.appLock),
onTap: controller.setAppLockAction,
),
ListTile(
title: Text(L10n.of(context)!.yourPublicKey),
subtitle: Text(
Matrix.of(context).client.fingerprintKey.beautified,
style: const TextStyle(fontFamily: 'monospace'),
),
leading: const Icon(Icons.vpn_key_outlined),
),
},
const Divider(height: 1),
ListTile(
@ -131,6 +121,14 @@ class SettingsSecurityView extends StatelessWidget {
),
onTap: controller.deleteAccountAction,
),
ListTile(
title: Text(L10n.of(context)!.yourPublicKey),
subtitle: SelectableText(
Matrix.of(context).client.fingerprintKey.beautified,
style: const TextStyle(fontFamily: 'monospace'),
),
leading: const Icon(Icons.vpn_key_outlined),
),
],
);
},