sozsoft-platform/ui/src/constants/login.result.enum.ts

18 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-02-24 20:44:16 +00:00
// 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
}
export default PlatformLoginResultType