INNER CODE UNIT · Python

Add

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

class Add:
    
    def GET(self):
        try:
            if session.user:
                return render.form(get_form())
            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()
        if not auth_form.validates():
            flash('error', 'form validation failed')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…