As per Book (page 241 version 2) I have defined my own table for the authentification in the db.py In the database i see my new fields. auth=Auth(globals(),db) # authentication/ authorization
auth_table = db.define_table( auth.settings.table_user_name, Field('cluster_user_name', length=128, default=''), Field('first_name', length=128, default=''), Field('last_name', length=128, default=''), Field('email', length=128, default='', unique=True), Field('password', 'password', length=256, readable=False, label='Password'), Field('registration_key', length=128, default= '', writable=False, readable=False)) auth_table.first_name.requires = \ IS_NOT_EMPTY(error_message=auth.messages.is_empty) auth_table.last_name.requires = \ IS_NOT_EMPTY(error_message=auth.messages.is_empty) #auth_table.password.requires = [IS_STRONG(), CRYPT()] auth_table.email.requires = [ IS_EMAIL(error_message=auth.messages.invalid_email), IS_NOT_IN_DB(db, auth_table.email)] auth.settings.table_user = auth_table auth.settings.login_methods.append(ldap_auth(bind_dn='HRA dadasa',bind_pw='asdasd',server='ad.con.de',base_dn='ou=users,ou=kjc,ou=institute,dc=ad,dc=uni- heidelberg,dc=de',mode='ad',secure=True)) auth.define_tables() But now i want to customize the login form for the user. How can I do it in web2py? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---