abp icon indicating copy to clipboard operation
abp copied to clipboard

Extend AbpIdentityServerResource problem

Open erojasd opened this issue 6 years ago • 7 comments

I'm trying to extend "AbpIdentityServerResource" to the Spanish language but when I implement it it causes the login error message to appear in Spanish for any language. My goal is for the login error message to appear in Spanish when this language is selected

Attached test project with the problem: https://drive.google.com/file/d/1xEiLPZCI_w0bOfG6_23TsREedZ8lMPv8/view?usp=sharing.

image

erojasd avatar Jul 10 '20 18:07 erojasd

hi @erojasd

Can you share your steps?

maliming avatar Jul 13 '20 08:07 maliming

hi @maliming, All I did was extend the resource "AbpIdentityServerResource" and override the keys "InvalidUserNameOrPassword" and "InvalidUsername" for the Spanish language

image

image

thanks!

erojasd avatar Jul 13 '20 19:07 erojasd

hi

When you expand the built-in resources you need to use different folders for them.

https://docs.abp.io/en/abp/latest/Localization#extending-existing-resource

maliming avatar Jul 14 '20 02:07 maliming

Hi I tried creating the resources in different folders, but the problem persists. Then, in addition to the Spanish language, I added a resource file for English and now it is launching the validation only in English for all languages: Thanks! image image image

erojasd avatar Jul 14 '20 14:07 erojasd

any idea what might be going on?

erojasd avatar Aug 25 '20 19:08 erojasd

You should extend the AccountResource (see)

hikalkan avatar Sep 06 '20 15:09 hikalkan

Thanks for the reply. The problem was fixed and it was due to an incorrect setting in OnApplicationInitialization within the HttpApiHostModule file

erojasd avatar Sep 07 '20 12:09 erojasd