If the user is authenticated, this function returns immediately.
If the user isn't authenticated, this function will authenticate the user with the authentication source, and
then return the user to the current page.
This function accepts an array $params, which controls some parts of the authentication. See the login()
method for a description.
public requireAuth ( array $params = [] ) | ||
$params | array | Various options to the authentication request. See the documentation. |