Interface IAuthenticator (namespace Nette\Security)
Performs authentication.
Public Method Summary | |
---|---|
IIdentity |
authenticate
($credentials)
Performs an authentication against e.g. database.
|
Constant Summary | |||
---|---|---|---|
int | FAILURE |
3 |
line 31 Exception error code |
int | IDENTITY_NOT_FOUND |
1 |
line 29 Exception error code |
int | INVALID_CREDENTIAL |
2 |
line 30 Exception error code |
int | NOT_APPROVED |
4 |
line 32 Exception error code |
string | PASSWORD |
'password' |
line 25 Credential key |
string | USERNAME |
'username' |
line 24 Credential key |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 43 authenticatepublic IIdentity authenticate ($credentials) Performs an authentication against e.g. database. and returns IIdentity on success or throws AuthenticationException
|