Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-09 14:41:56

NXArmada
Member
From: Sevierville, TN
Registered: 2005-09-13
Posts: 82

Set password Manually

I have installed TXP on out internal server for our intranet page and when I add user to TXP it dosen’t send out the password to the users. Is there a way that i can add the passwords manually?


Ryan

Offline

#2 2005-10-09 15:08:05

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: Set password Manually

Have you tried the “New password” field at the top of the user tab page? Or is this just for the user currently logged in?

Offline

#3 2005-10-09 20:25:36

NXArmada
Member
From: Sevierville, TN
Registered: 2005-09-13
Posts: 82

Re: Set password Manually

thats for the current user logged in


Ryan

Offline

#4 2005-10-10 10:33:26

Sandwich
Member
Registered: 2005-02-14
Posts: 37

Re: Set password Manually

I’d bet this is because the server you’re running TXP on doesn’t support sendmail(). There doesn’t seem to be the option to use SMTP to send out emails, either.

Without either of those options, you could manually generate the password hash from the passwords you want and input it directly into the database, since it is a local server. The one problem is that I can’t figure out what encryption method TXP uses to encrypt its passwords. It doesn’t seem to be either MD5 or the method used to create passwords for .htpasswd.

Anyway, once you find that out, I’d do this:

  1. Conenct directly to the database
  2. In the txp_users table, copy the contents of the “pass” field for the admin user; this password you should know, since you chose it during the TXP installation process. Save this in a text file somewhere as a backup.
  3. Let’s say the password was “abcxyz”. Generate another hash for “abcxyz” and paste the hash into the “pass” field of the database.
  4. Log in using that user and password to make sure that TextPattern accepts the encryption method you used. If it doesn’t, try another one, or revert to the original has that you saved as a backup in step 2.
  5. Once you’ve confirmed that TXP will accept the hashes you manually generate, you can create users and manually assign them their passwords directly through the database.

Kludgy, I know, but it could work… IF we find out what password encryption TXP uses/accepts.

Offline

#5 2005-10-10 10:46:18

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Set password Manually

> IF we find out what password encryption TXP uses/accepts.

You will find a link to this information on the homepage of the documentation at textpattern.net.

Here is the query you can use
<code>UPDATE txp_users SET pass = PASSWORD) WHERE name = ‘loginName’;</code>

when I add user to TXP it dosen’t send out the password to the users.

This shows that PHP is not set up properly. You must check the mail settings in php.ini, especially on windows.

Offline

#6 2005-10-10 11:41:50

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Set password Manually

There doesn’t seem to be the option to use SMTP to send out emails, either.

Textpattern will use SMTP if PHP is correctly configured for it.


Alex

Offline

#7 2005-10-10 13:08:02

NXArmada
Member
From: Sevierville, TN
Registered: 2005-09-13
Posts: 82

Re: Set password Manually

thanks the sql query should help


Ryan

Offline

Board footer

Powered by FluxBB