Skip to content

Commit

Permalink
New .authme format fixes #152
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Nov 14, 2021
1 parent 78067dd commit 134b7ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/application/src/js/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { app, shell, dialog, clipboard, Notification } = require("@electron/remote")
const logger = require("@levminer/lib/logger/renderer")
const { aes, convert } = require("@levminer/lib")
const { aes, convert, time } = require("@levminer/lib")
const speakeasy = require("@levminer/speakeasy")
const fs = require("fs")
const path = require("path")
Expand Down Expand Up @@ -755,7 +755,7 @@ const newSave = () => {
role: "codes",
encrypted: true,
codes: encrypted.toString("base64"),
date: new Date().toISOString().replace("T", "-").replaceAll(":", "-").substring(0, 19),
date: time.timestamp(),
version: "3",
}

Expand Down
2 changes: 1 addition & 1 deletion app/edit/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ const newSaveCodes = () => {
encrypted: true,
codes: encrypted.toString("base64"),
date: time.timestamp(),
version: "2",
version: "3",
}

fs.writeFileSync(path.join(file_path, "codes", "codes.authme"), JSON.stringify(codes, null, "\t"))
Expand Down

0 comments on commit 134b7ea

Please sign in to comment.