mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-06-18 15:15:25 +00:00
Increase version support to 4
for 2FAS backup import
Version 4 import of 2FAS backup was tested and successful with and without encryption without any code change
This commit is contained in:
parent
dfd720b406
commit
66e13b0840
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ public class TwoFASImporter extends DatabaseImporter {
|
|||
String json = new String(IOUtils.readAll(stream), StandardCharsets.UTF_8);
|
||||
JSONObject obj = new JSONObject(json);
|
||||
int version = obj.getInt("schemaVersion");
|
||||
if (version > 4) {
|
||||
if (version > 5) {
|
||||
throw new DatabaseImporterException(String.format("Unsupported schema version: %d", version));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue