Page 1 of 1

Lost password link in admin login

Posted: Mon Sep 11, 2006 7:14 am
by rued
Hello,

Sometimes there is need for an Lost Password link in The Admin Login, for more than one reason.

Some don't use the Login Module in frontend, and don't have the com_login published in any menus - others are managing regular users from third party systems (like SMF) etc.

Then there's sometimes need for an Lost password link in the Admin Login screen, and normally you would find this there in most online systems - so you don't need to go to the frontpage to get a new password anyway. And if the module or com-login isn't published, most off the users don't remember the address to it - in spite it's pretty simple to find.

This apply to both J!1.0 and J!1.5., I think - but most important now is J!1.0 ;)

Hope this can be fixed shortly.

Note! An easy and fast solution could be to just link to com_login on frontpage, as a start.

Best regards

Re: Lost password link in admin login

Posted: Mon Sep 11, 2006 7:20 am
by eyezberg
I agree 200 % as this just saved me when my site got hacked!
I had the module published frontend, so could reinitialize my hacked admin password, but if it hadn't been there, I would've been locked out of my own site completely!! (if course, if you know, you can add the option to the url, as Rune says, but would this still work in 1.5?).
Just a simple link sending a new password same as frontend.

Re: Lost password link in admin login

Posted: Mon Sep 11, 2006 7:45 am
by rued
I just did a test at one site, where I was adding one line to the administrator/templates/joomla_admin/login.php file.
This line adds a Lost Password link that will take you to ../index.php?option=com_registration&task=lostPassword/ (in frontend) - and it works fine from what I can see.

But still there would maybe be better with a own lost password site for the admin, but that could be an later step to fix - when the time allows you. This only takes 2-5 min. to get into SVN.. ;)

PS! If others want to add this hack to their site simply just open the file
/administrator/templates/joomla_admin/login.php

Find line 63:

Code: Select all

<p>Use a valid username and password to gain access to the administration console.</p>
And below that just add:

Code: Select all

<p><a href="<?php $mosConfig_absolute_path ?>/index.php?option=com_registration&task=lostPassword">Lost Password?</a></p>
Save and enjoy. :)

Re: Lost password link in admin login

Posted: Mon Sep 11, 2006 8:19 am
by eyezberg
Simple and effective enough for me to add right now :)
(even though, for added security, i now have my admin password writen down on a bright yellow sticker on my work computer in sight of everyone, so i can ask anybody for it in case I forget! LOL, they all answer: ****** :D )
seriously: thanks Rune, and dev's please add this?

Re: Lost password link in admin login

Posted: Sun Dec 30, 2007 5:13 am
by candidosa2
Iam try but she not work..
o dont see link..
Can tel me how can do that now
i change my template admin....

Re: Lost password link in admin login

Posted: Sun Dec 30, 2007 7:51 am
by candidosa2
thank all
iam finder here soluction
http://forum.joomla.org/index.php/topic ... 73707.html