Update password reset
This commit is contained in:
@@ -1412,7 +1412,7 @@ router.post(
|
|||||||
hostData.authType === "credential" ? hostData.credentialId : null,
|
hostData.authType === "credential" ? hostData.credentialId : null,
|
||||||
key: hostData.authType === "key" ? hostData.key : null,
|
key: hostData.authType === "key" ? hostData.key : null,
|
||||||
key_password:
|
key_password:
|
||||||
hostData.authType === "key" ? hostData.keyPassword : null,
|
hostData.authType === "key" ? (hostData.keyPassword || hostData.key_password || null) : null,
|
||||||
keyType:
|
keyType:
|
||||||
hostData.authType === "key" ? hostData.keyType || "auto" : null,
|
hostData.authType === "key" ? hostData.keyType || "auto" : null,
|
||||||
pin: hostData.pin || false,
|
pin: hostData.pin || false,
|
||||||
|
|||||||
@@ -894,7 +894,6 @@ router.post("/login", async (req, res) => {
|
|||||||
await authManager.registerUser(userRecord.id, password);
|
await authManager.registerUser(userRecord.id, password);
|
||||||
}
|
}
|
||||||
} catch (setupError) {
|
} catch (setupError) {
|
||||||
// Continue if setup fails - authenticateUser will handle it
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const dataUnlocked = await authManager.authenticateUser(
|
const dataUnlocked = await authManager.authenticateUser(
|
||||||
|
|||||||
Reference in New Issue
Block a user