mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 02:01:36 +03:00
Disable "save" when current password is empty.
This commit is contained in:
parent
65560e728d
commit
656addf614
@ -147,7 +147,9 @@ class _ManagePasswordDialogState extends ConsumerState<ManagePasswordDialog> {
|
||||
child: const Text('Cancel'),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: _newPassword.isNotEmpty && _newPassword == _confirmPassword
|
||||
onPressed: _newPassword.isNotEmpty &&
|
||||
_newPassword == _confirmPassword &&
|
||||
(!hasKey || _currentPassword.isNotEmpty)
|
||||
? () async {
|
||||
final result = await ref
|
||||
.read(oathStateProvider(widget.device.path).notifier)
|
||||
|
Loading…
Reference in New Issue
Block a user