Field("keypoints2", length=50000, label="keypoints 2"), Field("sex", "boolean", label="Sexo"), Field("street_number", length=5, label="Numero"), Field("comp_person", length=50, label="Complemento"), Field("neigh", length=50, label="Bairro"), Field("street", length=100, label="Logradouro"), Field("zipcode", length=10, label="CEP"), Field("city_person", db.city, label="Cidade"), Field("marital_status", type="integer", label="Estado civil"), Field("deleted", "boolean", writable=False, readable=False, label="Deleção Lógica", default="F"), ] auth.define_tables(username=False, signature=False) auth._next = None auth.settings.login_next = URL("default", "update_session") auth.settings.logout_next = URL("default", "index") auth.settings.registration_requires_verification = False auth.settings.registration_requires_approval = False auth.settings.reset_password_requires_verification = True auth.settings.actions_disabled.append("register") auth.settings.actions_disabled.append("profile") auth.settings.login_captcha = False # adicionar captcha auth.settings.password_min_length = 8 # tamanho do password auth.settings.expiration = 10800 # segundos 4 horas auth.settings.remember_me_form = False auth.settings.retrieve_password_captcha = False db.auth_user.email.label = T("E-mail") db.auth_user.password.label = T("Password")