Confirmation upon password change

Archived from the Xataface Users forum.

Gershy — Wed Nov 14, 2012 12:32 pm

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!


shannah — Wed Nov 14, 2012 12:58 pm

What browser are you using?


Gershy — Wed Nov 14, 2012 1:25 pm

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!


shannah — Wed Nov 14, 2012 1:43 pm

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


Gershy — Wed Nov 14, 2012 2:13 pm

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.