close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Password improvements in powercms

Thread began 3/18/2012 12:30 pm by johnlanglois | Last modified 3/23/2012 3:17 pm by johnlanglois | 1115 views | 3 replies

johnlanglois

Originally Said By: Jason Byrnes
  This is not a supported modification to power CMS.

you would need to edit the super admin password stored wa_setings table to the SHA1 string.

you would need to edit the admin_cms/users_login.php, add the following code at line 1 to convert the password that is entered to an SHA1 string for login:
php:
<?php

if(isset($_POST["Password"])){
    
$_POST["Password"] = sha1($_POST["Password"]);
}
?>



similar code would need to be added to the admin_cms/users_insert.php pages as well so that new users that are created will have the password stored in SHA1 format. the password form element on that page is named "password" so the code above would need to be altered slightly.

and code would need to be added to the users_update.php page to compare the submitted password with the one stored in the database to see if it is being changed and if so, convert the new password to the SHA1 format.


If you need assistance making this change, we can help you in a premiere support appointment.  



Thank you for the assistance.

Just out of curiosity, the Security Assist tutorials were excellent in showing how to do encryption on passwords. So, it's obvious WebAssist understands how to do that.
Why would you do anything less in powercms?

And why would you not include a user name field when so many people are conditioned to expect one? I get a lot of phone calls from clients because they confuse the email field of the login screen with a user name field.

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