Jump to content

 

Telemaco78

Member Since 12 Sep 2008
Offline Last Active Dec 16 2017 06:07 PM
-----

Posts I've Made

In Topic: Login With Email/username Modification In 4.3.x

07 February 2017 - 05:32 PM

Do you mean form? You should remove the cm-email class from the input on the authorization form

Thank you very much eComLabs ... tou were right:

 

design/themes/(theme name)/templates/views/auth/

open loginform.tpl

and erase cm-email and change language variable {__("email")} as desired...

 

Then change what you have pointed up here eComLabs... 

 

Now I have a doubt .... how users can retrieve their username if they have forgotten it? Did you any of you have had this problem?


In Topic: Login With Email/username Modification In 4.3.x

06 February 2017 - 06:02 PM

app/functions/fn.users.php

 

Find the fn_auth_routines function and replace:

$user_data = db_get_row("SELECT * FROM ?:users WHERE $field = ?s" . $condition, $user_login);

with

$user_data = db_get_row("SELECT * FROM ?:users WHERE $field = ?s" . $condition, $user_login);
if (empty($user_data)) {
    $user_data = db_get_row("SELECT * FROM ?:users WHERE user_login = ?s" . $condition, $user_login);
}

(!) Not tested

Hi eComLabs

 

I have tried to do that change but is not working for me... it still ask me for mail address as a required field, I´m using cs-cart version 4.3.6, do you know if that mod is suitable for my version??

 

Thanks in advance