mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 10:11:52 +03:00
always request focus for OATH and FIDO2 auth
This commit is contained in:
parent
82034c8be0
commit
54fd4d5aac
@ -44,6 +44,12 @@ class _PinEntryFormState extends ConsumerState<PinEntryForm> {
|
||||
bool _pinIsWrong = false;
|
||||
bool _isObscure = true;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_pinFocus.requestFocus();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_pinController.dispose();
|
||||
|
@ -44,6 +44,19 @@ class _UnlockFormState extends ConsumerState<UnlockForm> {
|
||||
bool _passwordIsWrong = false;
|
||||
bool _isObscure = true;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_passwordFocus.requestFocus();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_passwordController.dispose();
|
||||
_passwordFocus.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
void _submit() async {
|
||||
setState(() {
|
||||
_passwordIsWrong = false;
|
||||
|
Loading…
Reference in New Issue
Block a user