u2f: check files before register/login (#980)

This commit is contained in:
Nikolay Minaylov
2022-02-07 16:34:09 +03:00
committed by GitHub
parent 8cfd0eab9e
commit 40479e1761
7 changed files with 36 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ U2fApp* u2f_app_alloc() {
view_dispatcher_add_view(
app->view_dispatcher, U2fAppViewMain, u2f_view_get_view(app->u2f_view));
if(u2f_data_check()) {
if(u2f_data_check(true)) {
scene_manager_next_scene(app->scene_manager, U2fSceneMain);
} else {
scene_manager_next_scene(app->scene_manager, U2fSceneError);