[web2py] Re: auth.change_password() not workign

2010-12-01 Thread Aniket Arora
Actually I'm using two forms in a page. One of them is using SQLFORM
and second form is using auth.change_password(). The first one works
fine but change password form is not being submitted and also doesn't
show any error when filled wrongly. This problem occurs where I'm
using Version 1.88.2 and with Version 1.83.2, it's all fine.

Here's the code:

def settings():
user_id = auth.user.id
u = db(db.auth_user.id == user_id).select(db.auth_user.ALL)[0]

change_password_form =
auth.change_password()

record = db.auth_user(user_id)
settings_form = SQLFORM(db.auth_user, record, fields = ['email',
'display_name'], labels = {'email' : 'Email:', 'display_name':
'Display Name:'}, submit_button = 'Save Changes', showid=False)
if settings_form.accepts(request.vars, formname = 'form2'):
--
--
--
--
return dict(form1 = change_password_form, form2 = settings_form)

On Dec 1, 8:30 pm, mdipierro  wrote:
> I do not think so. What do you mean it does not work? Could it be a
> problem with mail?
>
> On Dec 1, 1:57 am, Aniket Arora  wrote:
>
> > Hey,
>
> > I'm using web2py (Version 1.83.2) on my local machine. I used
> > auth.change_password() function and it works fine on my local machine.
> > But when I tried the same on live site with Version 1.88.2 , it's not
> > working.
>
> > Is there any change specific to this in the newer version?
>
>


[web2py] Re: auth.change_password() not workign

2010-12-01 Thread mdipierro
I do not think so. What do you mean it does not work? Could it be a
problem with mail?

On Dec 1, 1:57 am, Aniket Arora  wrote:
> Hey,
>
> I'm using web2py (Version 1.83.2) on my local machine. I used
> auth.change_password() function and it works fine on my local machine.
> But when I tried the same on live site with Version 1.88.2 , it's not
> working.
>
> Is there any change specific to this in the newer version?