You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interface Nette\Security\Authenticator has two string parameters: $user and $password. The name of the parameter $user may led to naming confusion in this cases:
a) with Nette\Security\User which is by default present in Nette presenters like $presenter->user and in Nette templates like $user
b) with the database table user - it is a common practice use table user with field username (login) for authentication
Therefore I propose to change the name of the parameter $user to $username like this:
Hi,
interface Nette\Security\Authenticator has two string parameters: $user and $password. The name of the parameter $user may led to naming confusion in this cases:
a) with Nette\Security\User which is by default present in Nette presenters like $presenter->user and in Nette templates like $user
b) with the database table user - it is a common practice use table user with field username (login) for authentication
Therefore I propose to change the name of the parameter $user to $username like this:
github:
security/src/Security/Authenticator.php
Line 41 in 0458647
The text was updated successfully, but these errors were encountered: