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