password reset only works once then fails to log in second time

Permalink
I have 3 C5 websites on my virtual server 2 of them have developed a log in error, I haven't changed anything on them so i am unsure why this has started to happen.

both websites error when i login with the correct user-name and password. error: A username and password are required.

but i am entering them in correctly.

The only way i can log in is if i actually call my clients to change the password and then get them to send me the email they received with the link to change the password. once i have changed the password i automatically get loged in.

The password then stops working once i log out! so what am i to do to fix this? i cant just keep calling up my clients.

Is there a way to change the email address to my work one so i can reset the password myself every time i need to log in? it would stop me having to call my clients.

or just a fix would be good?

thanks

chris123uk
 
Brainakazariua replied on at Permalink Reply
Brainakazariua
To change the mail address go to: Dashboard -> Search Users -> click on the user -> Edit User -> change mail adres and Update User.

If it's the main admin account then also add these lines to the site.php
define('FORM_BLOCK_SENDER_EMAIL', 'client mail address');
define('EMAIL_ADDRESS_FORGOT_PASSWORD', 'client mail address');
chris123uk replied on at Permalink Reply
chris123uk
my htaccess file was stopping the login.

i was trying to do pretty urls and also removing the / on the urls by using the following code

AddType text/x-component .htc
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /

RewriteRule ^index\.php/(.*)$http://www.nonsuchconstruction.co.uk/$1... [R=301,L]
RewriteCond %{http_host} ^nonsuchconstruction.co.uk$ [nc]
RewriteRule ^(.*)$http://www.nonsuchconstruction.co.uk/$1... [r=301,nc,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>


I fixed it by using this new code:

AddType text/x-component .htc
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)$http://www.%{HTTP_HOST}/$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>