Last active
February 28, 2016 19:52
-
-
Save andevsoftware/448042448ef55e775179 to your computer and use it in GitHub Desktop.
Phalcon REST - Authenticate with AccountType
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Authenticate user using username and password (Username Account) | |
| */ | |
| /** @var \PhalconRest\Auth\Manager $authManager */ | |
| $session = $authManager->loginWithUsernamePassword(\App\Auth\UsernameAccountType::NAME, $username, $password); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment