[web2py] Re: Password verification - how to?

2010-07-07 Thread elfuego1
I think I just realized the field is missing one important tag: That should solve my problem ;-) On 7 Lip, 13:49, mdipierro wrote: > If you have a custom form, you should perform two steps: > > 1) manually insert the passoword 2 in the form > > >        {{=lbl.password}} label> >        {{=wd

[web2py] Re: Password verification - how to?

2010-07-07 Thread elfuego1
OK. I had managed to display INPUT field for password verification in my form BUT it's not encrypted. The values I write in this field are readable instead of dots or stars: **. Can you tell me how to add that part to the form field? On 7 Lip, 13:49, mdipierro wrote: > If you have a cust

[web2py] Re: Password verification - how to?

2010-07-07 Thread elfuego1
Serverside - you mean in the controller? On 7 Lip, 13:49, mdipierro wrote: > If you have a custom form, you should perform two steps: > > 1) manually insert the passoword 2 in the form > > >        {{=lbl.password}} label> >        {{=wdgt.password}} > > >        ...{{if form.errors.password

[web2py] Re: Password verification - how to?

2010-07-07 Thread mdipierro
If you have a custom form, you should perform two steps: 1) manually insert the passoword 2 in the form {{=lbl.password}} {{=wdgt.password}} ...{{if form.errors.password2:}} NO MATCH{{pass}} 2) serverside you just do form.append(INPUT(_name='password2',requires=IS_EXPR(

[web2py] Re: Password verification - how to?

2010-07-06 Thread elfuego1
Password field in my form looks like this: {{=lbl.password}} {{=wdgt.password}} Next how should I invoke: form.element(_name='password').parent().append(INPUT(_name='password2',requires=IS_EXPR('value= %s' % repr(request.vars.password)) )) to recive next input field for password

[web2py] Re: Password verification - how to?

2010-07-06 Thread mdmcginn
See http://web2py.com/book/default/section/5/2 for documentation on HTML Helpers. I believe Massimo's solution assumes there are tables in your form, which is the default for FORM and SQLFORM. If your form doesn't contain HTML elements such as , maybe you're using or instead. Look at your HTML -

[web2py] Re: Password verification - how to?

2010-07-05 Thread elfuego1
No, I don't. So does TD supposed to work as a variable or list? And what if I'd like to use form.element again? Do I append another form.element to TD and us it as a list? How do I address the value that is assigned to TD: TD[0], TD[1] and why is it "TD" in the first place? Is out there some descri

[web2py] Re: Password verification - how to?

2010-07-05 Thread KR
Do you have somewhere in your code TD=something ? On 6 juil, 01:18, elfuego1 wrote: > Can you please tell me yet how to implement it, so it would start > working in my form and verify the password? > When I add it to view: user.html or controller default.py then I > receive: > TypeError: 'TD' obj

[web2py] Re: Password verification - how to?

2010-07-05 Thread elfuego1
Can you please tell me yet how to implement it, so it would start working in my form and verify the password? When I add it to view: user.html or controller default.py then I receive: TypeError: 'TD' object is not callable So please let me know how to use form.element syntax to make it work proper

[web2py] Re: Password verification - how to?

2010-07-04 Thread mdipierro
form.element(_name=='password').insert(INPUT(_name='password2',requires=IS_EXPR('value= %s' % repr(request.vars.password)) )) should have been form.element(_name='password').parent().append(INPUT(_name='password2',requires=IS_EXPR('value= %s' % repr(request.vars.password)) )) form.element(_name='p

[web2py] Re: Password verification - how to?

2010-07-04 Thread elfuego1
I'm trying to make a use of this piece of code but nothing works. Can you please tell me where can I find some fine documentation that shows exactly how to use it or maybe write me an example because I have no idea where to put it in my form to make it work. HELP PLEASE!! form.element(_name=='pass

[web2py] Re: Password verification - how to?

2010-07-02 Thread elfuego1
Thank you for your speedy help!!! On 2 Lip, 12:13, mdipierro wrote: > you can do for example (assuming trunk) > > form.element(_name=='password').insert(INPUT(_name='password2',requires=IS_­EQUAL_TO(request.vars.password))) > > if you do not use trunk instead of IS_EQUAL_TO(request.vars.passwor

[web2py] Re: Password verification - how to?

2010-07-02 Thread mdipierro
you can do for example (assuming trunk) form.element(_name=='password').insert(INPUT(_name='password2',requires=IS_EQUAL_TO(request.vars.password))) if you do not use trunk instead of IS_EQUAL_TO(request.vars.password) you can use IS_EXPR('value=%s' % repr(request.vars.password)) On 2 Lug, 04:5