Website Summary Files Commits Branches @commit @diff @stats
path: root / views / footer.php
diff options
context:
space:
mode:
Commit76de68d2f3600a7000a054be3f595029b1931e20 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-01-26 11:08:46 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-01-26 11:09:27 +0200
Files35a48cde04501c4992d48f6ed32bb31ea9b597b6 /views/footer.php
nowayforward_human-76de68d2f3600a7000a054be3f595029b1931e20.tar
nowayforward_human-76de68d2f3600a7000a054be3f595029b1931e20.tar.gz
nowayforward_human-76de68d2f3600a7000a054be3f595029b1931e20.zip
Parent723cf2e6cbbea35e8f365d2287d01acb96f02643 (diff)
feat: Authentication logic on every page
1 files changed, 13 insertions, 0 deletions
-rw-r--r--views/footer.php13
diff --git a/views/footer.php b/views/footer.php
index b457da8..22c4631 100644
--- a/views/footer.php
+++ b/views/footer.php
@@ -1,3 +1,16 @@
</article>
</body>
+<script type="text/javascript">
+ function eval_callbacks() {
+ if (authentication_response === null) {
+ setTimeout(eval_callbacks, 50);
+ }
+ else if (authentication_response !== "") {
+ for (callback of authentication_callbacks) {
+ callback(authentication_response);
+ }
+ }
+ }
+ eval_callbacks();
+</script>
</html>