[3.2][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!
Get Involved
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: 731
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

[3.2][RC] Email Login

Post by martti » Thu Jun 07, 2018 5:57 am

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.2.0
Requirements:
  • phpBB 3.2.5+
  • PHP 7.1+
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 Sun Feb 03, 2019 10:36 pm, edited 5 times in total.

User avatar
Toxyy
Registered User
Posts: 687
Joined: Mon Oct 24, 2016 3:22 pm
Location: Namek
Contact:

Re: [3.2][BETA] Email login

Post by Toxyy » Thu Jun 07, 2018 6:03 am

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!

My extensions:
[3.2][BETA] Anonymous Posts || [3.2][RC] Show User Activity || [3.2][DEV] User Delete Topics

User avatar
martti
Registered User
Posts: 731
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Email login

Post by martti » Thu Jun 07, 2018 6:06 am

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: 832
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.2][BETA] Email Login

Post by eunaumtenhoid » Fri Jun 08, 2018 12:17 pm

nice work
WAITING RC version ^^
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

User avatar
Hartenheer
Registered User
Posts: 740
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman
Contact:

Re: [3.2][BETA] Email Login

Post by Hartenheer » Fri Aug 24, 2018 8:48 am

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

User avatar
Hartenheer
Registered User
Posts: 740
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman
Contact:

Re: [3.2][BETA] Email Login

Post by Hartenheer » Tue Aug 28, 2018 6:49 am

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

User avatar
null2
Registered User
Posts: 454
Joined: Wed Jan 20, 2010 11:03 am

Re: [3.2][BETA] Email Login

Post by null2 » 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.
Sorry for my bad english. I'm from USA.

User avatar
martti
Registered User
Posts: 731
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Email Login

Post by martti » Thu Aug 30, 2018 3:43 pm

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: 454
Joined: Wed Jan 20, 2010 11:03 am

Re: [3.2][BETA] Email Login

Post by null2 » 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.
Sorry for my bad english. I'm from USA.

User avatar
martti
Registered User
Posts: 731
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Email Login

Post by martti » Thu Aug 30, 2018 10:46 pm

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: 454
Joined: Wed Jan 20, 2010 11:03 am

Re: [3.2][BETA] Email Login

Post by null2 » Fri Aug 31, 2018 10:47 am

oh, its clear now. Thank you.
Sorry for my bad english. I'm from USA.

nudels64
Registered User
Posts: 47
Joined: Mon Oct 24, 2016 9:17 pm
Contact:

Re: [3.2][BETA] Email Login

Post by nudels64 » 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
phpbb 3.2.5 # PHP-Version: 7.0 # Themes: Prosilver and Basic

User avatar
martti
Registered User
Posts: 731
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Email Login

Post by martti » Tue Oct 23, 2018 9:14 pm

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: 47
Joined: Mon Oct 24, 2016 9:17 pm
Contact:

Re: [3.2][BETA] Email Login

Post by nudels64 » Tue Oct 23, 2018 9:19 pm

Aah, that could be. Can I comment out the line already?
phpbb 3.2.5 # PHP-Version: 7.0 # Themes: Prosilver and Basic

User avatar
martti
Registered User
Posts: 731
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Email Login

Post by martti » Tue Oct 23, 2018 9:25 pm

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

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: dmzx, ivellios1988, LeCabochon, Mohammed AlSarsawi, mrgoldy, nudels64 and 21 guests