File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed
AbpCompanyName.AbpProjectName.Core/Localization/Source
AbpCompanyName.AbpProjectName.WebMpa/Controllers
AbpCompanyName.AbpProjectName.WebSpaAngular/Controllers Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1212 <text name =" ThereIsNoTenantDefinedWithName{0}" value =" {0} isminde bir müşteri tanımlı değildir." />
1313 <text name =" TenantIsNotActive" value =" {0} isimli müşteri aktif edilmemiştir." />
1414 <text name =" UserIsNotActiveAndCanNotLogin" value =" {0} isimli kullanıcı pasife alınmıştır ve sisteme giremez." />
15+ <text name =" UserEmailIsNotConfirmedAndCanNotLogin" >E-posta adresiniz doğrulanmadı, giriş yapamazsınız.</text >
16+ <text name =" UserLockedOutMessage" >Kullanıcı hesabı kilitlenmiş. Lütfen bir süre sonra tekrar deneyin.</text >
1517 <text name =" PleaseEnterLoginInformation" value =" Lütfen giriş bilgilerinizi girin" />
1618 <text name =" TenancyName" value =" Müşteri adı" />
1719 <text name =" UserNameOrEmail" value =" Kullanıcı adı ya da e-posta" />
Original file line number Diff line number Diff line change 1212 <text name =" ThereIsNoTenantDefinedWithName{0}" value =" There is no tenant defined with name {0}" />
1313 <text name =" TenantIsNotActive" value =" Tenant {0} is not active." />
1414 <text name =" UserIsNotActiveAndCanNotLogin" value =" User {0} is not active and can not log in." />
15+ <text name =" UserEmailIsNotConfirmedAndCanNotLogin" >Your email address is not confirmed. You can not login</text >
16+ <text name =" UserLockedOutMessage" >The user account has been locked out. Please try again later.</text >
1517 <text name =" PleaseEnterLoginInformation" value =" Please enter login information" />
1618 <text name =" TenancyName" value =" Tenancy name" />
1719 <text name =" UserNameOrEmail" value =" User name or email" />
Original file line number Diff line number Diff line change @@ -144,7 +144,9 @@ private Exception CreateExceptionForFailedLoginAttempt(AbpLoginResultType result
144144 case AbpLoginResultType . UserIsNotActive :
145145 return new UserFriendlyException ( L ( "LoginFailed" ) , L ( "UserIsNotActiveAndCanNotLogin" , usernameOrEmailAddress ) ) ;
146146 case AbpLoginResultType . UserEmailIsNotConfirmed :
147- return new UserFriendlyException ( L ( "LoginFailed" ) , "Your email address is not confirmed. You can not login" ) ; //TODO: localize message
147+ return new UserFriendlyException ( L ( "LoginFailed" ) , "UserEmailIsNotConfirmedAndCanNotLogin" ) ;
148+ case AbpLoginResultType . LockedOut :
149+ return new UserFriendlyException ( L ( "LoginFailed" ) , L ( "UserLockedOutMessage" ) ) ;
148150 default : //Can not fall to default actually. But other result types can be added in the future and we may forget to handle it
149151 Logger . Warn ( "Unhandled login fail reason: " + result ) ;
150152 return new UserFriendlyException ( L ( "LoginFailed" ) ) ;
Original file line number Diff line number Diff line change @@ -142,7 +142,9 @@ private Exception CreateExceptionForFailedLoginAttempt(AbpLoginResultType result
142142 case AbpLoginResultType . UserIsNotActive :
143143 return new UserFriendlyException ( L ( "LoginFailed" ) , L ( "UserIsNotActiveAndCanNotLogin" , usernameOrEmailAddress ) ) ;
144144 case AbpLoginResultType . UserEmailIsNotConfirmed :
145- return new UserFriendlyException ( L ( "LoginFailed" ) , "Your email address is not confirmed. You can not login" ) ; //TODO: localize message
145+ return new UserFriendlyException ( L ( "LoginFailed" ) , "UserEmailIsNotConfirmedAndCanNotLogin" ) ;
146+ case AbpLoginResultType . LockedOut :
147+ return new UserFriendlyException ( L ( "LoginFailed" ) , L ( "UserLockedOutMessage" ) ) ;
146148 default : //Can not fall to default actually. But other result types can be added in the future and we may forget to handle it
147149 Logger . Warn ( "Unhandled login fail reason: " + result ) ;
148150 return new UserFriendlyException ( L ( "LoginFailed" ) ) ;
You can’t perform that action at this time.
0 commit comments