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

This commit is contained in:
shuaiplus committed 2026-07-10 13:00:32 +08:00
1 parent bb3f866220
commit 14dff8ee6a
6 files changed
+39 -56

No files matched your search

+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',