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 40 Exception error code |
| int | IDENTITY_NOT_FOUND |
1 |
line 38 Exception error code |
| int | INVALID_CREDENTIAL |
2 |
line 39 Exception error code |
| string | PASSWORD |
'password' |
line 34 Credential key |
| string | USERNAME |
'username' |
line 33 Credential key |
| Method Details | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 51 authenticatepublic IIdentity authenticate ($credentials) Performs an authentication against e.g. database. and returns IIdentity on success or throws AuthenticationException
|
||||||||||||||||||
