mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:55:12 +00:00
fix: Add 3pid email for password reset
This commit is contained in:
parent
eb879936a6
commit
1f3d88d09c
3 changed files with 18 additions and 11 deletions
|
@ -28,6 +28,7 @@ class Settings3PidView extends StatelessWidget {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
body: MaxWidthBody(
|
body: MaxWidthBody(
|
||||||
|
withScrolling: false,
|
||||||
child: FutureBuilder<List<ThirdPartyIdentifier>?>(
|
child: FutureBuilder<List<ThirdPartyIdentifier>?>(
|
||||||
future: controller.request,
|
future: controller.request,
|
||||||
builder: (
|
builder: (
|
||||||
|
|
|
@ -20,6 +20,14 @@ class SettingsPasswordView extends StatelessWidget {
|
||||||
padding: const EdgeInsets.all(16.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
|
Center(
|
||||||
|
child: Icon(
|
||||||
|
Icons.key_outlined,
|
||||||
|
color: Theme.of(context).dividerColor,
|
||||||
|
size: 80,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 16),
|
||||||
TextField(
|
TextField(
|
||||||
controller: controller.oldPasswordController,
|
controller: controller.oldPasswordController,
|
||||||
obscureText: true,
|
obscureText: true,
|
||||||
|
|
|
@ -53,7 +53,7 @@ class SettingsSecurityView extends StatelessWidget {
|
||||||
if (capabilities?.mChangePassword?.enabled == true ||
|
if (capabilities?.mChangePassword?.enabled == true ||
|
||||||
error != null) ...[
|
error != null) ...[
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(Icons.password_outlined),
|
leading: const Icon(Icons.key_outlined),
|
||||||
trailing: error != null
|
trailing: error != null
|
||||||
? null
|
? null
|
||||||
: const Icon(Icons.chevron_right_outlined),
|
: const Icon(Icons.chevron_right_outlined),
|
||||||
|
@ -85,7 +85,6 @@ class SettingsSecurityView extends StatelessWidget {
|
||||||
? null
|
? null
|
||||||
: () => context.go('/rooms/settings/security/3pid'),
|
: () => context.go('/rooms/settings/security/3pid'),
|
||||||
),
|
),
|
||||||
const Divider(),
|
|
||||||
],
|
],
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(Icons.block_outlined),
|
leading: const Icon(Icons.block_outlined),
|
||||||
|
@ -95,7 +94,6 @@ class SettingsSecurityView extends StatelessWidget {
|
||||||
context.go('/rooms/settings/security/ignorelist'),
|
context.go('/rooms/settings/security/ignorelist'),
|
||||||
),
|
),
|
||||||
if (Matrix.of(context).client.encryption != null) ...{
|
if (Matrix.of(context).client.encryption != null) ...{
|
||||||
const Divider(thickness: 1),
|
|
||||||
if (PlatformInfos.isMobile)
|
if (PlatformInfos.isMobile)
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(Icons.lock_outlined),
|
leading: const Icon(Icons.lock_outlined),
|
||||||
|
@ -103,14 +101,6 @@ class SettingsSecurityView extends StatelessWidget {
|
||||||
title: Text(L10n.of(context)!.appLock),
|
title: Text(L10n.of(context)!.appLock),
|
||||||
onTap: controller.setAppLockAction,
|
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),
|
const Divider(height: 1),
|
||||||
ListTile(
|
ListTile(
|
||||||
|
@ -131,6 +121,14 @@ class SettingsSecurityView extends StatelessWidget {
|
||||||
),
|
),
|
||||||
onTap: controller.deleteAccountAction,
|
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),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue