Skip to content

Commit b9a777a

Browse files
committed
Improve demo to print cause of Message invalidation if debug is enabled
1 parent c137eeb commit b9a777a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

demo1/index.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@
7373

7474
if (!empty($errors)) {
7575
echo '<p>',implode(', ', $errors),'</p>';
76+
if ($auth->getSettings()->isDebugActive()) {
77+
echo '<p>'.$auth->getLastErrorReason().'</p>';
78+
}
7679
}
7780

7881
if (!$auth->isAuthenticated()) {
@@ -103,6 +106,9 @@
103106
echo '<p>Sucessfully logged out</p>';
104107
} else {
105108
echo '<p>', implode(', ', $errors), '</p>';
109+
if ($auth->getSettings()->isDebugActive()) {
110+
echo '<p>'.$auth->getLastErrorReason().'</p>';
111+
}
106112
}
107113
}
108114

0 commit comments

Comments
 (0)