Skip to content

Instantly share code, notes, and snippets.

@vojtech-dobes
Created May 14, 2014 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vojtech-dobes/97276a21e14391b67185 to your computer and use it in GitHub Desktop.
Save vojtech-dobes/97276a21e14391b67185 to your computer and use it in GitHub Desktop.
<?php
class CredentialsAuthenticator
{
/** @var Nette\Security\User */
private $user;
public function __construct(Nette\Security\User $user)
{
$this->user = $user;
}
public function login($email, $password)
{
// ...
$this->user->login($identity);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment