Changing default login page to a custom login page | Community
Skip to main content
armanm32055672
New Participant
October 30, 2017
Solved

Changing default login page to a custom login page

  • October 30, 2017
  • 6 replies
  • 18655 views

Hi,

I have a site: '/content/name/en/domain/home.html' and also have a custom login page '/content/name/login.html'.

I need to change the default aem login page for this custom site to my custom login page. I am slightly confused how to do this.

When a users tries to access home.html for the first time, I want them to login through my custom login.html page instead of this default page: '/libs/granite/core/content/login.html'

Any help would be appreciated. Thanks!

Best answer by Ricky99999

go to this path:

       /libs/granite/core/content/login/clientlib/resources/bg/default/bg.css 

and change all image url

   background-image: url('../../../../login/clientlib/resources/bg/default/Copy of 1024x710.jpg');

    }

}

@media only screen and (orientation: landscape) {

    /*#bg_default::after {*/

        /*content: "orientation landscape (1024x710)";*/

    /*}*/

    #bg_default {

        background-image: url('../../../../login/clientlib/resources/bg/default/Copy of 1024x710.jpg');

6 replies

armanm32055672
New Participant
October 31, 2017

Not exactly what I am looking for but thanks

Ricky99999
Ricky99999Accepted solution
New Participant
October 31, 2017

go to this path:

       /libs/granite/core/content/login/clientlib/resources/bg/default/bg.css 

and change all image url

   background-image: url('../../../../login/clientlib/resources/bg/default/Copy of 1024x710.jpg');

    }

}

@media only screen and (orientation: landscape) {

    /*#bg_default::after {*/

        /*content: "orientation landscape (1024x710)";*/

    /*}*/

    #bg_default {

        background-image: url('../../../../login/clientlib/resources/bg/default/Copy of 1024x710.jpg');

kautuk_sahni
Employee
October 31, 2017

You can overlay the login component:- /libs/granite/core/components/login/login.jsp (AEM 6.3) as per your need.

~kautuk

Kautuk Sahni
manoj_devapath
New Participant
October 30, 2017
armanm32055672
New Participant
October 30, 2017

Yes the author instance.

smacdonald2008
New Participant
October 30, 2017

Are you talking about how to change the login page for the author instance?