Login with email instead of username

19.07.2016 08:27
#1
jerry2014
Joomshopping forum user no avatar
Name: jerry2014
13.09.2014
Posts: 88
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
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16513
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: 88
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: 778
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: 88
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)


Letzte Änderung: 29.07.2016 04:44
 
03.08.2016 04:17
#6
jerry2014
Joomshopping forum user no avatar
Name: jerry2014
13.09.2014
Posts: 88
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;
}


Letzte Änderung: 03.08.2016 06:45
 
Copyrights MAXXmarketing GmbH. All Rights Reserved