Commit | Line | Data |
---|---|---|
75afb100 | 1 | <?php |
a9229942 | 2 | |
75afb100 | 3 | namespace wcf\system\user\authentication; |
a9229942 | 4 | |
75afb100 MW |
5 | use wcf\data\user\User; |
6 | ||
7 | /** | |
a17de04e | 8 | * User authentication implementation that uses the e-mail address to identify users. |
a9229942 TD |
9 | * |
10 | * @author Markus Bartz | |
11 | * @copyright 2011 Markus Bartz | |
12 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> | |
13 | * @package WoltLabSuite\Core\System\User\Authentication | |
75afb100 | 14 | */ |
a9229942 TD |
15 | class EmailUserAuthentication extends DefaultUserAuthentication |
16 | { | |
17 | /** | |
18 | * @inheritDoc | |
19 | */ | |
20 | protected function getUserByLogin($login) | |
21 | { | |
22 | return User::getUserByEmail($login); | |
23 | } | |
75afb100 | 24 | } |