Page 1 of 1

Passwort request function on login page

Posted: 2020-12-31 08:01
by SkayyHH
I would be happy if we could disable the password request function in the admin or that it is not displayed at login screen if no email data is stored.

Re: Passwort request function on login page

Posted: 2021-01-03 10:12
by onoehring
Hi,

quick fix:
Remove this line

Code: Select all

	'forgot password' => 'Forgot your password? <a href=membership_passwordReset.php>Click here</a>',
from defaultLang.php ...
better: Change this line to

Code: Select all

	'forgot password' => '',
as this will prevent any errors.

Doing so, you can place some application settings (I have a special table where the regular-admin can define some settings) that defines, if the language string should be dropped. You can add a special codeline as last line in defaultLang.php which checks for the setting and changes the reset PW string as I described above.

Olaf

Re: Passwort request function on login page

Posted: 2021-01-03 21:51
by SkayyHH
Hello Olaf,

so many thanks for the tip!

It is a great idea to use an appgini table for settings, too.

Many greetings, kai