Redesign login/register with Mento branding and email/mobile OTP.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user