Project

General

Profile

Actions

Feature #24708

closed

allow to username and email simultaneously for login

Added by Jan Schreier about 13 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Miscellaneous
Target version:
-
Start date:
2011-01-21
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

as many websites offer this feature, I got several reports by users complaining about their password not working. it is quite frequent that people try their email address instead because they're used to do so from sites like facebook.

my request is thus to enable the extension to handle ether email or username (in conjunction with the right password of course)

(issue imported from #M17196)


Files

Actions #1

Updated by Heiko Haensge about 13 years ago

The implementation of this option is quite easy. I found the solution and some example code in the German Typo3 mailinglist offered by Steffen Ritter, siehe hier:
http://www.mail-archive.com/typo3-german@lists.typo3.org/msg10697.html
I've tested it. And it works fine. Please find the auth service class class.tx_rsmysherpasusers_authservice.php attached. In addition the service has to be registered in the ext_localconf.php by:

t3lib_extMgm::addService(
'rsmysherpasusers',
'auth',
'tx_rsmysherpasusers_authservice',
array(
'title' => 'FE-Authentification via eMail',
'description' => 'looks up given username in email field instead of username field',
'subtype' => 'getUserFE',
'available' => TRUE,
'priority' => 95, // must be higher than tx_sv_auth (50) and rsaauth (60) but lower than OpenID (75) if you want to use OpenID too
'quality' => 70,
'os' => '',
'exec' => '',
'classFile' => t3lib_extMgm::extPath('rsmysherpasusers').'class.tx_rsmysherpasusers_authservice.php',
'className' => 'tx_rsmysherpasusers_authservice',
)
);

Still it would be a good idea to implement this option into the felogin extension and control it by typoscript setup - including 'auth service priority'.

Regards
Heiko Hänsge

Actions #2

Updated by Jigal van Hemert about 12 years ago

  • Category changed from felogin to Miscellaneous
  • Status changed from New to Needs Feedback
  • Target version deleted (0)
  • TYPO3 Version set to 4.5

As the example shows, this can easily be implemented in an extension. Besides the changes mentioned in Steffen's posting it also requires that the field email is set to uniqueInPid; until now the same email address can be used for multiple FE user accounts. Changing this in the core would cause problems in a lot of installations.

I think it should not be included in the core, but be handled by an extension.

Actions #3

Updated by Jan Schreier about 12 years ago

oh, I somehow missed out the 1st comment. tested it and works great as ext. thanks also for mentioning the uniqueInPid issue, Jigal. I'd be fine if this issue is closed.

Actions #4

Updated by Thorsten Kahler about 12 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF