Page 1 of 1

Confirmation upon password change

PostPosted: Wed Nov 14, 2012 12:32 pm
by Gershy
Hey everyone, I've been working with xataface for my job and I've run into a minor issue.

I got the change password button working for logged-in users, and it functions correctly, however after the password is changed (successfully or unsuccessfully) the confirmation page that gets shown is extremely ugly, just blank text.

An incorrect change produces
{"code":0,"message":"The password you entered is incorrect. Please try again."}

A correct change produces
{"code":200,"message":"Your password has been successfully changed"}

These are just displayed in normal blank font on a blank page, no links to go back or anything. Is there a simple way to change this or must I rewrite the entire confirmation page?

Thanks in advance!

Re: Confirmation upon password change

PostPosted: Wed Nov 14, 2012 12:58 pm
by shannah
What browser are you using?

Re: Confirmation upon password change

PostPosted: Wed Nov 14, 2012 1:25 pm
by Gershy
I'm using chrome! Everything else has worked for me, I've never had a plain-text issue like this so far.

Also I forgot to mention, the program is excellent, congrats!

Re: Confirmation upon password change

PostPosted: Wed Nov 14, 2012 1:43 pm
by shannah
THis is very strange. What it is showing you is the JSON response to an AJAX request. Likely there is an error that is mucking with the headers so that your browser is confused about the response. Do you have any
1. Javascript errors reported in your browser's javascript console?
2. Errors logged in your apache/php error log?

-Steve

Re: Confirmation upon password change

PostPosted: Wed Nov 14, 2012 2:13 pm
by Gershy
No errors, but I've discovered the problem! The dataface directory parameter to df_init in index.php was incorrect, I made it right and now everything looks great.