Apply PSR-12 code style (#3886)
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / user / authentication / EmailUserAuthentication.class.php
CommitLineData
75afb100 1<?php
a9229942 2
75afb100 3namespace wcf\system\user\authentication;
a9229942 4
75afb100
MW
5use 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
15class EmailUserAuthentication extends DefaultUserAuthentication
16{
17 /**
18 * @inheritDoc
19 */
20 protected function getUserByLogin($login)
21 {
22 return User::getUserByEmail($login);
23 }
75afb100 24}