code/authenticators/JwtAuth.php 1 location
|
@@ 16-18 (lines=3) @@
|
13 |
|
|
14 |
|
public static function authenticate($email, $password) { |
15 |
|
$authenticator = \Injector::inst()->get('ApiMemberAuthenticator'); |
16 |
|
if($user = $authenticator->authenticate(['Password' => $password, 'Email' => $email])) { |
17 |
|
return self::createSession($user); |
18 |
|
} |
19 |
|
} |
20 |
|
|
21 |
|
/** |
code/authenticators/SessionAuth.php 1 location
|
@@ 14-16 (lines=3) @@
|
11 |
|
public static function authenticate($email, $password) { |
12 |
|
// auth |
13 |
|
$authenticator = \Injector::inst()->get('ApiMemberAuthenticator'); |
14 |
|
if($user = $authenticator->authenticate(['Password' => $password, 'Email' => $email])) { |
15 |
|
return self::createSession($user); |
16 |
|
} |
17 |
|
} |
18 |
|
|
19 |
|
/** |
code/authenticators/TokenAuth.php 1 location
|
@@ 13-15 (lines=3) @@
|
10 |
|
|
11 |
|
public static function authenticate($email, $password) { |
12 |
|
$authenticator = \Injector::inst()->get('ApiMemberAuthenticator'); |
13 |
|
if($user = $authenticator->authenticate(['Password' => $password, 'Email' => $email])) { |
14 |
|
return self::createSession($user); |
15 |
|
} |
16 |
|
} |
17 |
|
|
18 |
|
/** |