[RC1] Login via E-Mail - Login with your email address

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
primehalo
Former Team Member
Posts: 2991
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

[RC1] Login via E-Mail - Login with your email address

Post by primehalo »

MOD Title: Prime Login via E-Mail
MOD Description: This MOD will let a user login with either their username or e-mail address. It will also prevent a user from registering with a username that matches another user's e-mail address.
MOD Version: 1.0.1

MOD Download: Main Download
Last Stable version: 1.0.1

Demo Board: http://www.absoluteanime.com/forum/
Demo Username: tester
Demo E-Mail Address: [email protected]
Demo Password: tester

Version 1.0.0 (Sept 26, 2007)
  • Initial release
Version 1.0.1 (Sept 27, 2007)
  • Allow administrators to re-authenticate using their e-mail address.
  • Prevent users from choosing a username that matches another user's e-mail address.
  • Replaced the UTF8-clean check on the e-mail address with just a simple case-insensitive check.
Last edited by primehalo on Tue Jun 21, 2011 4:28 pm, edited 4 times in total.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
Mike.XIII
Registered User
Posts: 62
Joined: Thu Jul 20, 2006 7:26 pm

Re: [RC1] Login via E-Mail - Login with your email address

Post by Mike.XIII »

I've been looking at your mods, you have really great ideas.
Keep up the good work man ;)
User avatar
primehalo
Former Team Member
Posts: 2991
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

Re: [RC1] Login via E-Mail - Login with your email address

Post by primehalo »

Mike.XIII wrote:I've been looking at your mods, you have really great ideas.
Keep up the good work man ;)
Thanks, though not all of the ideas are mine. Some of them I did as requests.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
saaiberke
Registered User
Posts: 1126
Joined: Wed Jul 20, 2005 8:13 am
Location: Gent/Belgium

Re: [RC1] Login via E-Mail - Login with your email address

Post by saaiberke »

Nice, very nice :)

I added a language variable {USERMAIL} which I use in addition when showing the loginbody so it shows:

Code: Select all

Username or e-mailaddress
I did the same thing in the index_body.html to show the same way in the quick login box at the bottom of the board.

But now it also shows in the ACP login confirm, there it is not possible to login with the emailaddress. :-(

Do you see any possibility to also get it work there?

I really like your mods, good ideas you have (even if they are coming from the mod requests ;))

Greetings,

Nic
User avatar
primehalo
Former Team Member
Posts: 2991
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

Re: [RC1] Login via E-Mail - Login with your email address

Post by primehalo »

Sure, that's no problem.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
.:: Chico ::.
Registered User
Posts: 463
Joined: Fri Aug 03, 2007 6:35 am
Location: Rio de Janeiro

Re: [RC1] Login via E-Mail - Login with your email address

Post by .:: Chico ::. »

saaiberke wrote:
I really like your mods, good ideas you have (even if they are coming from the mod requests ;))
That's really true.

thanks prime!
User avatar
CrimsonThunder
Registered User
Posts: 340
Joined: Sun Sep 02, 2007 10:18 am

Re: [RC1] Login via E-Mail - Login with your email address

Post by CrimsonThunder »

Hey I was just wondering if this works with the "lost password" thing as well. because due to this post here http://www.phpbb.com/community/viewtopi ... 3#p3226955

what if the user forgets their username and password. This will send a an email with both of them. :) Thus only the email is needed.
User avatar
primehalo
Former Team Member
Posts: 2991
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

Re: [RC1] Login via E-Mail - Login with your email address

Post by primehalo »

CrimsonThunder wrote:Hey I was just wondering if this works with the "lost password" thing as well. because due to this post here http://www.phpbb.com/community/viewtopi ... 3#p3226955

what if the user forgets their username and password. This will send a an email with both of them. :) Thus only the email is needed.
No, to recover your password you need to know both your username and email address. I believe they did this for security purposes so I wouldn't want to change that.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
idiotnesia
Registered User
Posts: 509
Joined: Sun Jun 18, 2006 10:58 am
Location: www.phpbbindonesia.com
Name: Pungky Putra

Re: [RC1] Login via E-Mail - Login with your email address

Post by idiotnesia »

I think it's better if there is option in ACP to choose Login by username, email, or both of them.
User avatar
primehalo
Former Team Member
Posts: 2991
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

Re: [RC1] Login via E-Mail - Login with your email address

Post by primehalo »

idiotnesia wrote:I think it's better if there is option in ACP to choose Login by username, email, or both of them.
I'm currently too busy to add any more features at the moment, but I'll keep this in mind for when I get some more time to work on it.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
AustinMatherne
Registered User
Posts: 15
Joined: Sun Jun 29, 2008 9:48 pm
Location: Saint Paul, Minnesota, USA
Name: Austin Matherne

Re: [RC1] Login via E-Mail - Login with your email address

Post by AustinMatherne »

Good mod. There's one bug though. If you try to login with a suspended account or banned account, you get an error saying:

Code: Select all

Fatal error: Call to a member function correct_username_var() on a non-object in /home/puphu/public_html/community/includes/functions.php on line 2279
Regards,
~ Austin
~ Austin
User avatar
primehalo
Former Team Member
Posts: 2991
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

Re: [RC1] Login via E-Mail - Login with your email address

Post by primehalo »

Thanks, I have fixed this and will upload the new version shortly, but really all you have to do is add this near the top of the prime_post_revisions.php file:
global $prime_post_revisions;
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
AustinMatherne
Registered User
Posts: 15
Joined: Sun Jun 29, 2008 9:48 pm
Location: Saint Paul, Minnesota, USA
Name: Austin Matherne

Re: [RC1] Login via E-Mail - Login with your email address

Post by AustinMatherne »

Nice!

When you update it, you should add the "/root/includes/prime_login_via_email.php" file into the instructions. As it is missing.
~ Austin
User avatar
kopacko
Registered User
Posts: 254
Joined: Mon Feb 17, 2003 1:39 am

Re: [RC1] Login via E-Mail - Login with your email address

Post by kopacko »

Is there anyway to force only using an email address as the username?
User avatar
primehalo
Former Team Member
Posts: 2991
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

Re: [RC1] Login via E-Mail - Login with your email address

Post by primehalo »

Find and comment out the code that checks for the username. It should be somewhere above where this code gets placed:

Code: Select all

$prime_login_via_email->check_for_email($row, $sql, $username); 
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

Return to “[3.0.x] MODs in Development”