File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,13 @@ async function getTotp(text: string) {
204204 if ( period ) {
205205 entryData [ hash ] . period = period ;
206206 }
207+ if (
208+ ( await EntryStorage . hasEncryptedEntry ( ) ) !==
209+ encryption . getEncryptionStatus ( )
210+ ) {
211+ chrome . tabs . sendMessage ( id , { action : "errorenc" } ) ;
212+ return ;
213+ }
207214 await EntryStorage . import ( encryption , entryData ) ;
208215 chrome . tabs . sendMessage ( id , { action : "added" , account } ) ;
209216 }
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ if (!document.getElementById("__ga_grayLayout__")) {
1414 case "errorqr" :
1515 alert ( chrome . i18n . getMessage ( "errorqr" ) ) ;
1616 break ;
17+ case "errorenc" :
18+ alert ( chrome . i18n . getMessage ( "phrase_incorrect" ) ) ;
19+ break ;
1720 case "added" :
1821 alert ( message . account + chrome . i18n . getMessage ( "added" ) ) ;
1922 break ;
You can’t perform that action at this time.
0 commit comments