1
0
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:
Marco
2017-07-30 16:37:34 +02:00
parent 2247c2781c
commit 5c92d026c9

View File

@@ -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">';