Confirmation upon password change

A place for users and developers of the Xataface to discuss and receive support.

Confirmation upon password change

Postby 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!
Gershy
 
Posts: 25
Joined: Wed Nov 14, 2012 12:28 pm

Re: Confirmation upon password change

Postby shannah » Wed Nov 14, 2012 12:58 pm

What browser are you using?
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Confirmation upon password change

Postby 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!
Gershy
 
Posts: 25
Joined: Wed Nov 14, 2012 12:28 pm

Re: Confirmation upon password change

Postby 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
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Confirmation upon password change

Postby 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.
Gershy
 
Posts: 25
Joined: Wed Nov 14, 2012 12:28 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 30 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved