Login with email instead of username

19.07.2016 08:27
#1
jerry2014
Joomshopping forum user no avatar
Name: jerry2014
13.09.2014
Posts: 102
Quote
Login with email instead of username

We want to get rid of the username.

Customers should only use email/password for login/register, because many people choose names that they dont remember later.

What do we have to change?

 
19.07.2016 10:29
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25919
Quote
Aw: Login with email instead of username

Configuration / Fields Registration

disable field:
Username

 
19.07.2016 16:52
#3
jerry2014
Joomshopping forum user no avatar
Name: jerry2014
13.09.2014
Posts: 102
Quote
Aw: Login with email instead of username

Login with email and password from joomshopping works when username is disabled in options?

 
19.07.2016 18:04
#4
midiplus
Joomshopping forum user no avatar
Name: Anton
03.07.2013
Posts: 1927
Quote
Aw: Login with email instead of username

Yes. Check.

 
28.07.2016 22:12
#5
jerry2014
Joomshopping forum user no avatar
Name: jerry2014
13.09.2014
Posts: 102
Quote
Aw: Login with email instead of username

When an user change his email, the login email is not changed. This should be fixed.
(Are duplicate emailusername possible after changing the username to changed email? This should be forbidden)


Last change: 29.07.2016 04:44
 
03.08.2016 04:17
#6
jerry2014
Joomshopping forum user no avatar
Name: jerry2014
13.09.2014
Posts: 102
Quote
Aw: Login with email instead of username

jerry2014 - 28.07.2016 22:12
When an user change his email, the login email is not changed.


I changed the following lines myself. This does the job:

file: components\com_jshopping\models\useredit.php

line 78-80:
public function userSave(){
return $this->user->store();
}

change to:
public function userSave(){
$this->user->u_name = $this->user->email;
return $this->user->store();
}


line 91-93:
if ($user_shop->email){
$user->email = $user_shop->email;
}

change to:
if ($user_shop->email){
$user->email = $user_shop->email;
$user->username = $user_shop->email;
}


Last change: 03.08.2016 06:45
 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.