sozsoft-platform/ui/src/constants/login.result.enum.ts
2026-04-27 16:02:09 +03:00

18 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Backend ile ayni, degistirilmemeli
const PlatformLoginResultType = {
Succeeded: 10, //+
Failed: 11, // + Mesaj: InvalidUserNameOrPassword, Geçersiz kullanıcı adı veya parola!
LockedOut: 12, //+ LockoutEnd:true, LockoutEnd>Today Mesaj: UserLockedOutMessage Hesap kilitli
NotAllowed: 13, //+ EmailConfirmed:false -> Buton: Doğrulama Kodunu Tekrar Gönder, Mesaj: LoginIsNotAllowed Hesabınız etkin değil, Identity:ResendEmailConfirmedError
RequiresTwoFactor: 14, //+ TwoFactorEnabled:true, Sayfa: TwoFactor
WrongTwoFactorCode: 15, //+ Mesaj: WrongTwoFactorCode
ShouldChangePasswordOnNextLogin: 16, // ShouldChangePasswordOnNextLogin:true, Sayfa: Şifre Yenileme, Mesaj: Şifre değiştirmelisiniz
ShouldChangePasswordPeriodic: 17, // LastPasswordChangeTime:<Today+PasswordChangePeriodDays, Sayfa: Şifre Yenileme, Mesaj: Şifre değiştirmelisiniz
NotVerified: 18, // IsVerified:true, Mesaj: Identity:UserNotVerifiedMessage
NotAllowedIp: 19, // IpRestriction tablosu, Mesaj: Identity:IpRestrictionError
LoginEndDateDue: 20, // LoginEndDate:>Today, Buton: ShowExtendMyLoginButton, Mesaj: Identity:LoginEndDateError, >LoginEndDate
ShowCaptcha: 21, // AccessFailedCount>AccountCaptchaMaxFailedAccessAttempts, Sayfa: Show Captcha
ConcurrentUserLimit: 22, // MaxConcurrentUsers limiti dolduğunda, Mesaj: Identity:ConcurrentUserLimitError
}
export default PlatformLoginResultType