{"action":"created","issue":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3524","repository_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate","labels_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3524/labels{/name}","comments_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3524/comments","events_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3524/events","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3524","id":333348369,"node_id":"MDU6SXNzdWUzMzMzNDgzNjk=","number":3524,"title":"Can't Change Identity Error Messages","user":{"login":"chadsmith12","id":8794805,"node_id":"MDQ6VXNlcjg3OTQ4MDU=","avatar_url":"https://avatars1.githubusercontent.com/u/8794805?v=4","gravatar_id":"","url":"https://api.github.com/users/chadsmith12","html_url":"https://github.com/chadsmith12","followers_url":"https://api.github.com/users/chadsmith12/followers","following_url":"https://api.github.com/users/chadsmith12/following{/other_user}","gists_url":"https://api.github.com/users/chadsmith12/gists{/gist_id}","starred_url":"https://api.github.com/users/chadsmith12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadsmith12/subscriptions","organizations_url":"https://api.github.com/users/chadsmith12/orgs","repos_url":"https://api.github.com/users/chadsmith12/repos","events_url":"https://api.github.com/users/chadsmith12/events{/privacy}","received_events_url":"https://api.github.com/users/chadsmith12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-18T16:37:50Z","updated_at":"2018-06-19T07:52:40Z","closed_at":null,"author_association":"NONE","body":"**Version:** 3.5.0\r\n**Base Framework:** .NET Framework MVC/jQuery\r\n**Steps to reproduce:** Set the `Identity.DuplicateName` in the local XML to your error message. The error message will always be the default error message from ASP.NET Identity\r\n\r\nI wanted to change the default ASP.NET Identity duplicate username error message. After looking around It seemed I could set the `Identity.DuplicateName` in the localization XML file. I tried setting this and re-running though nothing changed. \r\n\r\nAfter stepping through the source line by line I think I found why this is. Inside of IdentityResultExtensions there is: \r\n```\r\nif (identityResult is AbpIdentityResult)\r\n{\r\n     return identityResult.Errors.JoinAsString(\" \");\r\n}\r\n\r\n return identityResult.Errors.Select(err => LocalizeErrorMessage(err, localizationManager)).JoinAsString(\" \");\r\n```\r\nThe `LocalizeErrorMessage` method seems to be the method that should get called to do this, though I can not get it to ever hit this condition. It always hits the `if (identityResult is AbpIdentityResult)` condition and just returns the error messages as is.\r\nAm I missing how you can change the messages from .NET Identity or am I doing this right and this seems to be a bug? I don't see any other place the framework would use the `ILocalizationManager` to localize/change the error messages"},"comment":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/comments/398308377","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3524#issuecomment-398308377","issue_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3524","id":398308377,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODMwODM3Nw==","user":{"login":"ismcagdas","id":4133525,"node_id":"MDQ6VXNlcjQxMzM1MjU=","avatar_url":"https://avatars1.githubusercontent.com/u/4133525?v=4","gravatar_id":"","url":"https://api.github.com/users/ismcagdas","html_url":"https://github.com/ismcagdas","followers_url":"https://api.github.com/users/ismcagdas/followers","following_url":"https://api.github.com/users/ismcagdas/following{/other_user}","gists_url":"https://api.github.com/users/ismcagdas/gists{/gist_id}","starred_url":"https://api.github.com/users/ismcagdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismcagdas/subscriptions","organizations_url":"https://api.github.com/users/ismcagdas/orgs","repos_url":"https://api.github.com/users/ismcagdas/repos","events_url":"https://api.github.com/users/ismcagdas/events{/privacy}","received_events_url":"https://api.github.com/users/ismcagdas/received_events","type":"User","site_admin":false},"created_at":"2018-06-19T07:52:40Z","updated_at":"2018-06-19T07:52:40Z","author_association":"MEMBER","body":"@chadsmith12 have you tried extending the default localization source https://aspnetboilerplate.com/Pages/Documents/Localization#extending-localization-sources ?"}}
{"actor":{"display_login":"ismcagdas"}}