0
nayan.ranjane@softtech-engr.com created
Please provide me solution to customize the login page of the Identity server 4.2 also of 8. I have different clients so want to share build and login page layout will be customized by them
- Exception message and full stack trace:
- Steps to reproduce the issue: Take Identity server 4.2 with abp customize login page
1 Answer(s)
-
0
Hi,
I wrote an article for this recently: https://dev.to/enisn/you-do-it-wrong-customizing-abp-login-page-correctly-l2k
Here is the main takeaway from the article:
- What exactly do I want to change? Is it the overall look and feel (branding, colors, background) or the structure of the login form itself?
- Can this be achieved with CSS? Often, targeted CSS rules leveraging theme-specific layout classes are sufficient and the least intrusive method. This should be your first consideration for visual tweaks.
- Do I need to alter the content around the login form? If yes, overriding the Account Layout (e.g.,
Themes/Basic/Layouts/Account.cshtml
or its LeptonX equivalent) is the correct approach. This gives you control over headers, footers, and surrounding content without touching the core login mechanism. - Do I need to change the login form fields or its core submission logic? Only then should you consider overriding the Login Page component itself (e.g.,
Pages/Account/Login.cshtml
) from the Account Module.
If you need to customize Login page, yes you could do for both applications in the same way. But if you need to customize Account layout, it won't be that easy, you'll need to override each theme manually. If you provide me more information about your both application's themes, I can share some sample code to customize it