View Thread
 Print Thread
Email Login Tutorial
Using an email address as an substitute in PHP-Fusion is both more secure and promotes anti-spam capabilities in comparison to the default username login.

As a pre-warning, if you decide to make the modifications, you will not be able to login with your username, you, along with all your websites members, will need to login using their email.

This tutorial was developed using PHP-Fusion v7.02.06. It can become backwards compatible if one knows where to edit/replace via earlier versions.

Let's get started!


Edit the Authenticate Class: includes/classes/Authenticate.class.php

Around line 41 -


$result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_name='".$inputUserName."' LIMIT 1");


$result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_email='".$inputUserName."' LIMIT 1");

Now all one needs to do is edit instances where the user would normally use the field UserName such as the user login panel - Change UserName to Email so as to not confuse the member to which to use.
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the [url=
With this code you can use both Nickname or Emailadress

$result = dbquery("   SELECT * FROM ".DB_USERS." WHERE user_name='".$inputUserName."' || user_email='".$inputUserName."' LIMIT 1");
Jump to Forum
Similar Threads
Thread Forum Replies Last Post
Email not comming General Chat 2 04-21-2019 03:21
Facebook Login Infusions Support 4 12-11-2016 13:32
Include Custom Login Panel General Chat 1 05-17-2015 07:39
Facebook connect does not show the fields to register or login Infusions Support 5 02-22-2015 14:53
[Tutorial] Speed Up Adsense Page Loading [7.02.XX] Code Snippets 2 01-04-2015 13:25