Frank Vèssia Posted March 14, 2011 Share Posted March 14, 2011 I'm making a import script from my old db to PW db. My problem is users password field. In my db passwords are already crypted. When i create a new pw user like '$user->pass = "password"' pw automatically create the md5 version. Is there a way to skip this process and save the password as i have in my db? Link to comment Share on other sites More sharing options...
ryan Posted March 14, 2011 Share Posted March 14, 2011 The passwords are double salted, meaning the "salt" column with each user in the DB has to go along with the password. In addition, the $config->userAuthSalt at the bottom of your /site/config.php has to match between the two sites you are trying to share the passwords with. For the users, you'll have to do this at the DB level rather than with the API. That's because ProcessWire randomizes the salt for that user every time you change the password. With the $config->userAuthSalt, you can just edit your site/config.php file to change that. Let me know if you need any help with either part. The point of all this is better security. But you can disable all of the salting if it suits your needs better by setting $config->userAuthHashType to null (which will force it to do nothing but md5 hash). You would need to do this before installation, or use the API to reset the passwords of an existing site, as any passwords already in the users table would already be salted and thus non-functional until changed. Link to comment Share on other sites More sharing options...
Frank Vèssia Posted March 14, 2011 Author Share Posted March 14, 2011 ok, i disabled for now any hash. Another question: there is no any pagination in users page in admin?? Link to comment Share on other sites More sharing options...
ryan Posted March 14, 2011 Share Posted March 14, 2011 The current user system is bare. It's only designed to hold a few admin users. The new system will be designed for broader scope of course. Link to comment Share on other sites More sharing options...
apeisa Posted March 14, 2011 Share Posted March 14, 2011 Will there be any limits at the new system? We sometimes have over 100 000 users that need to login. Link to comment Share on other sites More sharing options...
ryan Posted March 14, 2011 Share Posted March 14, 2011 There won't be any limits, at least not any that aren't already present with pages. Though with 100k users... that's a lot. It will likely be a good test to help us introduce new performance optimizations and ways of filtering them. The existing user system was not designed to be scalable, as it was always seen as a temporary solution. Granted a temporary solution that suits the needs for most of the sites I work on. But it's not ideal if you have to deal with more than a couple dozen accounts. Sevarf2 - how many accounts are you dealing with now? Link to comment Share on other sites More sharing options...
Frank Vèssia Posted March 14, 2011 Author Share Posted March 14, 2011 Now i have 332 accounts. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now