feat: disable new-device verification and update related logic across services

This commit is contained in:
shuaiplus
2026-07-10 13:00:32 +08:00
parent bb3f866220
commit 14dff8ee6a
6 changed files with 39 additions and 56 deletions
+3 -1
View File
@@ -30,7 +30,9 @@ export function buildProfileResponse(user: User, env?: Env): ProfileResponse {
forcePasswordReset: false,
avatarColor: null,
creationDate: user.createdAt,
verifyDevices: user.verifyDevices !== false,
// New-device verification is not supported without an email delivery channel.
// Always report disabled so clients do not present a false security posture.
verifyDevices: false,
role: user.role,
status: user.status,
object: 'profile',