Page 1 of 4

[3.3][RC] Email Login

Posted: Thu Jun 07, 2018 5:57 am
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:

Re: [3.2][BETA] Email login

Posted: Thu Jun 07, 2018 6:03 am
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!

Re: [3.2][BETA] Email login

Posted: Thu Jun 07, 2018 6:06 am
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.

Re: [3.2][BETA] Email Login

Posted: Fri Jun 08, 2018 12:17 pm
by eunaumtenhoid
nice work
WAITING RC version ^^

Re: [3.2][BETA] Email Login

Posted: Fri Aug 24, 2018 8:48 am
by Hartenheer
+1

Re: [3.2][BETA] Email Login

Posted: Tue Aug 28, 2018 6:49 am
by Hartenheer
It works very well.
This should come standard in PHPbb :mrgreen:

Re: [3.2][BETA] Email Login

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

Are error messages (wrong username/email/password) in language folder used? Im still getting phpbb3 default error messages.

Re: [3.2][BETA] Email Login

Posted: Thu Aug 30, 2018 3:43 pm
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.

Re: [3.2][BETA] Email Login

Posted: Thu Aug 30, 2018 9:27 pm
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.

Re: [3.2][BETA] Email Login

Posted: Thu Aug 30, 2018 10:46 pm
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.

Re: [3.2][BETA] Email Login

Posted: Fri Aug 31, 2018 10:47 am
by null2
oh, its clear now. Thank you.

Re: [3.2][BETA] Email Login

Posted: Tue Oct 23, 2018 9:06 pm
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

Re: [3.2][BETA] Email Login

Posted: Tue Oct 23, 2018 9:14 pm
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

Re: [3.2][BETA] Email Login

Posted: Tue Oct 23, 2018 9:19 pm
by nudels64
Aah, that could be. Can I comment out the line already?

Re: [3.2][BETA] Email Login

Posted: Tue Oct 23, 2018 9:25 pm
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.