mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-01 13:50:13 +02:00
Pass 'Auth' instance to 'showAuthenticatedUserForm' in 'tests'
This commit is contained in:
@@ -38,7 +38,7 @@ $result = processRequestData($auth);
|
||||
showDebugData($auth, $result);
|
||||
|
||||
if ($auth->check()) {
|
||||
showAuthenticatedUserForm();
|
||||
showAuthenticatedUserForm($auth);
|
||||
}
|
||||
else {
|
||||
showGuestUserForm();
|
||||
@@ -507,7 +507,7 @@ function showGeneralForm() {
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
function showAuthenticatedUserForm() {
|
||||
function showAuthenticatedUserForm(\Delight\Auth\Auth $auth) {
|
||||
showGeneralForm();
|
||||
|
||||
echo '<form action="" method="post" accept-charset="utf-8">';
|
||||
|
Reference in New Issue
Block a user