mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 07:35:24 +00:00
fix: finish 2.9.0 plugin moves and get every check green
This commit is contained in:
1 parent
8c1e02af89
commit
6489b62ece
335 files changed
+29878
-17749
No files matched your search
@@ -232,6 +232,13 @@ export async function runLogin(
|
||||
const user = await resolveUser(identity, deviceType);
|
||||
|
||||
await unlockUser(user, identity, deviceType);
|
||||
if ("password" in identity && identity.password) {
|
||||
// A 2.8 key still wrapped by the password only opens here, so this is the
|
||||
// first chance to move that user's TOTP secret into the plugin.
|
||||
const { runTotpMigration } =
|
||||
await import("../utils/crypto-migration/totp-migration.js");
|
||||
await runTotpMigration(user.id);
|
||||
}
|
||||
await syncSharedCredentialsForUserRoles(
|
||||
user.id,
|
||||
`${context.methodId}_role_shared_credentials`,
|
||||
|
||||
Reference in new issue
Block a user