INNER CODE UNIT · Python

Login

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

class Login:

    loginform = web.form.Form(web.form.Textbox('username',
                                               web.form.notnull,
                                               web.form.regexp('^[a-zA-Z0-9]+$', 'Alpha-numeric characters only (maximum %s)' % USERNAME_MAX_LEN),
                                               web.form.Validator('Not more than %s characters.' % USERNAME_MAX_LEN, lambda x: len(x)<USERNAME_MAX_LEN)),
                              web.form.Password('password',
                                                web.form.notnull,
                                                web.form.regexp('[ -~]', 'Printable characters only (maximum %s)' % PASSWORD_MAX_LEN),
                                                web.form.Validator('Not more than %s characters.' % PASSWORD_MAX_LEN, lambda x: len(x)<PASSWORD_MAX_LEN)))

    def get_login_form(self):
        login_form = Login.loginform()
        login_form.title = 'login'
        return login_form


    def GET(self):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…