4 posts / 0 new
Last post
Chrysmille
Chrysmille's picture
Offline
Last seen: 5 years 7 months ago
Joined: 12/05/2014
Two Login Form

Hello,

I want to remove the default login form(it is only username and password) because I want to use only the User Login because it has the "create new account" and "Request new password", whenever I log-out the two forms are in the home page. How can I remove the other one? When I go to the blocks and homebox only the user login can be disable but I don't want that.

Hope for your answers. Thank you in advance.

James Aparicio
James Aparicio's picture
Offline
Last seen: 2 months 1 week ago
Staff
Joined: 10/30/2013
Hi Chrymille,

Hi Chrymille,

3 different ways i can think of:

->Remove it by hidding it with css (display:none)

->Implementing a hook_menu_alter and unset the menu "user/password".

->Remove it by processing the tabs in the template.php.

With the 1st and 3rd solution the user can still go to user/password if he manually writes the url in the browser. 

 

Best regards

Jack
Offline
Last seen: 3 weeks 3 days ago
Joined: 10/15/2018
Hello,

Hello, I would like to: a) hide/remove the default login field/form on the main page of the Drupal 8 Opigno. b) change the urls associated with the "Request new password" and "Create a new account". Any idea of how to achieve these? Thanks, Jack

tqnghiep
Offline
Last seen: 1 month 3 weeks ago
Joined: 08/03/2020
Oh, I am sorry

I have been commented wrong thread but I dont have the permission to delete my comment.