Redesign login/register with Mento branding and email/mobile OTP.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-05 00:47:33 +03:30
co-authored by Cursor
parent aa3fe49ce6
commit c620d1d6d4
12 changed files with 1792 additions and 184 deletions
+36 -1
View File
@@ -31,6 +31,7 @@ export function canReassignRecords(role: UserRole | string | null | undefined):
export interface AuthUserDto {
id: string;
email: string;
mobile?: string;
fullName: string;
role: UserRole;
organizationId: string;
@@ -64,7 +65,8 @@ export interface ApiErrorBody {
}
export interface LoginRequest {
email: string;
/** ایمیل یا شماره موبایل */
identifier: string;
password: string;
}
@@ -72,8 +74,41 @@ export interface RegisterOrganizationRequest {
organizationName: string;
fullName: string;
email: string;
mobile: string;
password: string;
passwordConfirm: string;
businessField: BusinessField;
referralCode?: string;
acceptedTerms?: boolean;
}
export interface LoginChallengeResponse {
challengeId: string;
channel: 'email' | 'mobile';
expiresInSeconds: number;
maskedDestination?: string;
/** فقط در محیط توسعه / AUTH_RETURN_OTP */
devCode?: string;
}
export interface RegisterChallengeResponse {
challengeId: string;
expiresInSeconds: number;
maskedEmail?: string;
maskedMobile?: string;
devEmailCode?: string;
devMobileCode?: string;
}
export interface LoginVerifyRequest {
challengeId: string;
code: string;
}
export interface RegisterVerifyRequest {
challengeId: string;
emailCode: string;
mobileCode: string;
}
export interface LoginResponse {