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


Update password with Sha1 encryption problem

Thread began 7/07/2010 1:16 am by victor405909 | Last modified 7/08/2010 4:08 pm by Eric Mittman | 809 views | 3 replies |


Update password with Sha1 encryption problem

I cannot change the password of a registered user.

I used data assist update single record.

Page has a simple text field , label and submit button.

Page redirects to correct page after update.

I can see password is encrypted in database. Used encryption for update.

Any suggestions?

Sign in to reply to this post

Eric Mittman

How have you configured the update server behavior? You will need to ensure that you are updating the currently logged in user, if you created the pages with Security Assist the user's id should be in a session variable that is used to identify the user. To update the users password you will need to apply the sha1 formatting to the posted password value that is specified in the update server behavior. Please describe how you have it setup currently and include a copy of the page in question in a zip archive.

Sign in to reply to this post


These are the steps I took. zip file included.

(1 of 2 update wizard)

Event trigger: Button update pressed

Connection: (established)

Table: Users selected

Key column: UserID

Value:<?php echo $_SESSION['UserID'];?>

Date type: Text

After go to:index.php

(2 of 2 update wizard)

data type:text

Sha1 Encryption selected for Userpassword: <?php echo WA_SHA1Encryption($_SESSION['UserPassword']); ?>

Attached Files
Sign in to reply to this post

Eric Mittman

Thanks for the page, it clears things up. The problem is that you are formatting and storing the session variable UserPassword in your update. I could not see anywhere on the page where you were setting this value. Normally you would have a password type of input that would hold the user's new password, then use the encrypted format of this password to store in the db.

If the password should be in the session variable and it is not then you may need to start the session above the update. You can do a check and start the session like this:

if(!session_id()) session_start();

Please post back and let us know if you have any further problems with it. If you do also include some more details about the UserPassword session variable or whatever value you are using for the new password.

Sign in to reply to this post

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





Ease of use


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...