def auth_user(): ck_usr = cookie.auth_client() if ck_usr == True: pass else: redirect_login()
scrollTop: $('.section-download').offset().top }, 1000); } } </script> </body> </html> """) def redirect_login(): print(""" <script>window.location = "/login.html";</script> """) # IMPORTANT: Disable SELINUX print('content-type: text/html') #print(cookie.set_cookie('kb')) print() ck_usr = cookie.auth_client() if ck_usr == True: show_html() else: redirect_login()