close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

New Password Not Working

Thread began 11/01/2009 9:12 am by rog4679 | Last modified 11/03/2009 3:59 pm by Jason Byrnes | 3582 views | 29 replies |

rog4679

New Password Not Working

Hello -

I've created the forms using SA wizzard. Everything is working except the link on the profile.php to 'change password'.

The error is -
After changing my password, I'm redirected on success to login.php. Using my new password (I just created), the login fails and I receive a email with random new password that works properly upon logging in.

Is there a session variable not allowing me to use my newly generated password?

I appreciate greatly you help - Kathi

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a copy of the new password page and the login page so I can examine the code please.

Sign in to reply to this post

larsentim278054

I've got the same problem. I've watched the videos and did everything step by step. Everything works EXCEPT for the Generate new password page. It doesn't generate it. It's still the old password. In the video - it does NOT tell you what the form action should be (should there be one? --- I've never made a form that didn't have one, but maybe this one doesn't?) or if it should be GET or POST. I just put the php filename there for the action. Perhaps I shouldn't? When I submit the new password, it just redisplays the newpassword page, but in the address bar it has this as the address which can't be right:

http://[mydomainhere]/newpassword.php?newpassword=[it actually displays the password I typed in right here which I don't think it should]&submitPassword.x=0&submitPassword.y=0&submitPassword=Submit



So I don't know what to do to fix this.

Sign in to reply to this post

Jason ByrnesWebAssist

The action can be left blank, that is the same as entering the page name.

The problem you are having is that the method is either not set or set to use the get method, it needs to use the post method.

Sign in to reply to this post

larsentim278054

I've gotten it to not show that weird URL after hitting submit (by changing the form to POST instead of GET) but it still doesn't update the password. So I'm not sure what I'm doing wrong. It's just keeping the password to whatever it was originally. And I've removed the action and it does the same thing.

Sign in to reply to this post

larsentim278054

I've checked the update record behavior and everything is setup correctly - it's set to the form submit id, the key column is Userid which is what I'm using, the password on the next step is encrypted... Not sure what else is wrong. the only thing I see that's funny is the PHP code says this:

if (isset($_POST["submitPassword_x"])) // Trigger



instead of "submitPassword" ... but I've tried removing the "_x" and it doesn't help.

After hitting submit, it does go back to the profile page, as if it did something. But it doesn't update it.

Sign in to reply to this post

Jason ByrnesWebAssist

Try adding the following at line 1:

php:
<?php if(!session_id()) session_start(); ?>




if your still having problems, please send a copy of the page so I can look at the code.

Sign in to reply to this post

larsentim278054

I tried adding that to line one and it didn't provide diff. results.

I'm attaching the page.

Attached Files
new_password.zip
Sign in to reply to this post

Jason ByrnesWebAssist

try changing line 14:

php:
$WA_fieldValuesStr = "".WA_SHA1Encryption(((isset($_GET["newpassword"]))?$_GET["newpassword"]:""))  ."";





to:

php:
$WA_fieldValuesStr = "".WA_SHA1Encryption(((isset($_POST["newpassword"]))?$_POST["newpassword"]:""))  ."";




are you still being redirected to the users_Profile.php page?

Sign in to reply to this post

larsentim278054

I changed the GET word to POST, and it doesn't change the password still, but YES - it is still being redirected back to the profile page after submitting it.

Originally Said By: Jason Byrnes
  try changing line 14:
php:
$WA_fieldValuesStr = "".WA_SHA1Encryption(((isset($_GET["newpassword"]))?$_GET["newpassword"]:""))  ."";




to:
php:
$WA_fieldValuesStr = "".WA_SHA1Encryption(((isset($_POST["newpassword"]))?$_POST["newpassword"]:""))  ."";



are you still being redirected to the users_Profile.php page?  
Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...