INNER CODE UNIT · Python

Delete

ab77/netflix-proxy · auth/auth.py:517

class Delete:
    
    def GET(self):
        try:
            if session.user:
                frm = get_form(name='delete')
                if not frm.inputs:flash('success', """all IP addresses de-authorized, please <a href="/add">authorize</a> one""")
                return render.form(frm)
            else:
                raise web.seeother('/login')                

        except Exception as e:
            web.debug(traceback.print_exc())
            raise web.seeother('/login')

    @csrf_protected # Verify this is not CSRF, or fail
    def POST(self):
        auth_form = get_form()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…