Alexander Kopachov 2 лет назад
Родитель
Сommit
1b3e5d82c4
2 измененных файлов с 6 добавлено и 0 удалено
  1. 1 0
      .ofwcatalog/CHANGELOG.md
  2. 5 0
      totp_app.c

+ 1 - 0
.ofwcatalog/CHANGELOG.md

@@ -3,6 +3,7 @@
 ## v3.2.0 - 2 Aug 2023
 ## v3.2.0 - 2 Aug 2023
 
 
 * Implemented [#177](https://github.com/akopachov/flipper-zero_authenticator/issues/177)
 * Implemented [#177](https://github.com/akopachov/flipper-zero_authenticator/issues/177)
+* Fixed [#178](https://github.com/akopachov/flipper-zero_authenticator/issues/178)
 * Refactoring
 * Refactoring
 
 
 ## v3.1.0 - 31 Jul 2023
 ## v3.1.0 - 31 Jul 2023

+ 5 - 0
totp_app.c

@@ -53,6 +53,11 @@ static bool totp_activate_initial_scene(PluginState* const plugin_state) {
         DialogMessageButton dialog_result =
         DialogMessageButton dialog_result =
             dialog_message_show(plugin_state->dialogs_app, message);
             dialog_message_show(plugin_state->dialogs_app, message);
         dialog_message_free(message);
         dialog_message_free(message);
+        if(!totp_crypto_check_key_slot(plugin_state->crypto_key_slot)) {
+            totp_dialogs_config_loading_error(plugin_state);
+            return false;
+        }
+
         if(dialog_result == DialogMessageButtonRight) {
         if(dialog_result == DialogMessageButtonRight) {
             totp_scene_director_activate_scene(plugin_state, TotpSceneAuthentication);
             totp_scene_director_activate_scene(plugin_state, TotpSceneAuthentication);
         } else {
         } else {