Hello guys i need someone's help here... 
I am trying to add mobile no. in Sign up form using custom_auth_table...
my code is this.. 


db.define_table('user',
    Field('email', length=128, label=T('Email'), unique=True, notnull=True),
    Field('mobile', length=10, label=T('Mobile No.')),
    Field('username', length=20, label=T('User name'), unique=True, 
notnull=True),
    Field('password', 'password', readable=True, label=T('Password'), 
notnull=True, requires=CRYPT()),
    Field('first_name', length=128, writable=False, readable=False, 
default=''),
    Field('last_name', length=128, writable=False, readable=False, 
default=''),
    Field('registration_key', length=512, writable=False, readable=False, 
default=''),
    Field('reset_password_key', length=512, writable=False, readable=False, 
default=''),
    Field('registration_id', length=512, writable=False, readable=False, 
default='')      
)

custom_auth_table = db['user']


now i want to validate the mobile no. Because the problem is 'integer' 
won't accept a no. more than 9 digits.. and length='10' takes up any 
string... 
Thanks in advance...

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to