[3.3][RC] Email Login

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
martti
Registered User
Posts: 914
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

[3.3][RC] Email Login

Post by martti »

Extension Name: Email Login
Author: martti
Extension Description: In phpBB the default is to login with username (and password). This extension provides 2 extra authentication providers (which are extended from the basic database provider):
  • Db_email: To login with email (and password).
  • Db_username_or_email: To login with username or email (and password).
After installation, one of these can be selected in the ACP: General > Client communication > Authentication.

Only users with a unique email address in the database will be able to login. It is recommanded to check beforehand if all email addresses are unique. When you left the configuration option "Allow email address re-use" in the ACP (General > Board configuration > User registration settings) to the default "false" in your board, this will be the case.

The provider Db_username_or_email checks first if the input is in the form of a valid email address. If yes, the user is identified by the email address.

Access to the ACP remains with username and password combination.

Extension Version: 0.4.0
Requirements:
  • phpBB 3.3+
  • PHP 7.1+
(For phpBB 3.2.5+ use version 0.2.0)
Extension Download: https://github.com/marttiphpbb/phpbb-ex ... master.zip The files are to be put in ext/marttiphpbb/emaillogin
Github repository: https://github.com/marttiphpbb/phpbb-ext-emaillogin
Languages: en
Templates: prosilver
Screenshots:

Authentication provider Db_username_or_email
Quick login:
Image
Login box:
Image

Authentication provider Db_email
Quick login:
Image
Login box:
Image

Related extensions:
Last edited by martti on Sat Feb 08, 2020 11:28 am, edited 8 times in total.
User avatar
Toxyy
Registered User
Posts: 966
Joined: Mon Oct 24, 2016 3:22 pm
Location: Namek

Re: [3.2][BETA] Email login

Post by Toxyy »

Loving these small addons here and there. I thought there was something similar for 3.2 already, or did you have to edit core files? I remember getting it to work last year for someone but forgot how. Good work!
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

Some of my extensions:
[3.3][BETA] Post Form Templates || [3.3][BETA] Anonymous Posts || [3.2][3.3][BETA] ACP Merge Child Forums || [3.2][BETA] Sticky Ad || [3.2][DEV] User Delete Topics || [3.3][DEV] Moderate While Searching || [3.3][RC] Short Number Twig Extension
User avatar
martti
Registered User
Posts: 914
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Email login

Post by martti »

Toxyy wrote: Thu Jun 07, 2018 6:03 am Loving these small addons here and there
Yes, I like to keep extensions small and doing one thing: that provides maximum flexibility, focus and maintainability.
Toxyy wrote: Thu Jun 07, 2018 6:03 am did you have to edit core files?
No, then it wouldn't be an extension.
User avatar
eunaumtenhoid
Registered User
Posts: 1039
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.2][BETA] Email Login

Post by eunaumtenhoid »

nice work
WAITING RC version ^^
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
User avatar
Hartenheer
Registered User
Posts: 780
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman

Re: [3.2][BETA] Email Login

Post by Hartenheer »

+1
Sorry English is not my native language :oops:
regards: Willem

https://bierfijnproevers.nl/bierforum
User avatar
Hartenheer
Registered User
Posts: 780
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman

Re: [3.2][BETA] Email Login

Post by Hartenheer »

It works very well.
This should come standard in PHPbb :mrgreen:
Sorry English is not my native language :oops:
regards: Willem

https://bierfijnproevers.nl/bierforum
User avatar
null2
Registered User
Posts: 522
Joined: Wed Jan 20, 2010 11:03 am

Re: [3.2][BETA] Email Login

Post by null2 »

Great extension, thanks!

Are error messages (wrong username/email/password) in language folder used? Im still getting phpbb3 default error messages.
Sorry for my bad english. I'm from USA.
User avatar
martti
Registered User
Posts: 914
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Email Login

Post by martti »

null2 wrote: Thu Aug 30, 2018 1:34 pm Great extension, thanks!

Are error messages (wrong username/email/password) in language folder used? Im still getting phpbb3 default error messages.
But are the messages correct? Core error messages are re-used. The new authentication providers are extended from the basic database provider in core. Only specific messages to this extension are new.
User avatar
null2
Registered User
Posts: 522
Joined: Wed Jan 20, 2010 11:03 am

Re: [3.2][BETA] Email Login

Post by null2 »

Messages are correct but they are not these ones in extension language folder. I have tested using a wrong login to see the message.
Sorry for my bad english. I'm from USA.
User avatar
martti
Registered User
Posts: 914
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Email Login

Post by martti »

null2 wrote: Thu Aug 30, 2018 9:27 pm Messages are correct but they are not these ones in extension language folder. I have tested using a wrong login to see the message.
If you use Db_username_or_email and you fill in something that is not in the form of an email then the extension passes the authentication directly over to the default core one. Unless you don't fill in anything at all, then you should see an error message from the extension itself.
User avatar
null2
Registered User
Posts: 522
Joined: Wed Jan 20, 2010 11:03 am

Re: [3.2][BETA] Email Login

Post by null2 »

oh, its clear now. Thank you.
Sorry for my bad english. I'm from USA.
nudels64
Registered User
Posts: 53
Joined: Mon Oct 24, 2016 9:17 pm

Re: [3.2][BETA] Email Login

Post by nudels64 »

Hello, I always have the following message in the Error log path when I log in:

Code: Select all

PHP message: db_username_or_email\n', referer: xxxxxxxx
phpbb 3.2.9 # PHP-Version: 7.0 # Themes: Prosilver and Basic
User avatar
martti
Registered User
Posts: 914
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Email Login

Post by martti »

nudels64 wrote: Tue Oct 23, 2018 9:06 pm Hello, I always have the following message in the Error log path when I log in:

Code: Select all

PHP message: db_username_or_email\n', referer: xxxxxxxx


There are some logs added for debugging. Those are to be removed later.
This log is probably generated with the error_log() at line 86 in event/listener.php
nudels64
Registered User
Posts: 53
Joined: Mon Oct 24, 2016 9:17 pm

Re: [3.2][BETA] Email Login

Post by nudels64 »

Aah, that could be. Can I comment out the line already?
phpbb 3.2.9 # PHP-Version: 7.0 # Themes: Prosilver and Basic
User avatar
martti
Registered User
Posts: 914
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Email Login

Post by martti »

nudels64 wrote: Tue Oct 23, 2018 9:19 pm Aah, that could be. Can I comment out the line already?
Yes, of course.

Return to “Extensions in Development”