feat(auth): allow owner to force OTP-only login per user

Team menu «ورود با کد» blocks password login with a clear message and switches the login screen to OTP.
This commit is contained in:
2026-10-22 15:43:24 +03:30
parent 80fb5bf1bb
commit 65cf4e9a66
9 changed files with 181 additions and 11 deletions
+9
View File
@@ -389,9 +389,18 @@ export interface OrgUserDto {
logoutTime?: string | null;
/** بعد از ساعت خروج تا پایان روز نمی‌تواند دوباره وارد شود */
blockLoginAfterLogout?: boolean;
/**
* ورود فقط با کد پیامکی؛ رمز عبور برای این کاربر در این محیط پذیرفته نمی‌شود
* (حتی اگر از قبل رمز داشته باشد).
*/
loginOtpOnly?: boolean;
createdAt: string;
}
export interface UpdateUserLoginOtpOnlyRequest {
loginOtpOnly: boolean;
}
export type DataVisibility = "own" | "team" | "org";
export const DATA_VISIBILITIES: DataVisibility[] = ["own", "team", "org"];