WoollyinWalesIT / jomres

Jomres Core, the online booking engine and portal for Joomla and Wordpress
https://www.jomres.net
GNU General Public License v2.0
40 stars 36 forks source link

Change the login link #441

Closed allynat closed 2 years ago

allynat commented 4 years ago

9.20

Wordpress customer and manager login by default is /wp-admin

If we change this link to be /new-login to thwart hackers, then Jomres Login dropdown causes 404.

If we put in place a redirect plugin to 301 /wp-admin -> /new-login, it defeats the objective of stopping hackers targetting /wp-admin

To force Jomres to allow the new link we can amend: jomres/libraries/jomres/cms_specific/wordpress/cms_specific_functions.php

function jomres_cmsspecific_getlogin_task()
{
return 'index.php?option=com_users&view=login';

to be

function jomres_cmsspecific_getlogin_task()
{
return '/new-login';

However, we are forced to overwrite the core cms_specific_functions.php file and we are unable to put a customised file safe from upgrade overwrite.

jomres commented 4 years ago

What you really want then is a site config option to show the login page path?

allynat commented 4 years ago

I believe so, thereby offering wp the ability to handle the secret / custom url

Regards

Ally

On 26 Aug 2020, at 19:20, Vince Wooll notifications@github.com wrote:

 What you really want then is a site config option to show the login page path?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

jomres commented 2 years ago

Resolved