Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-12 17:21:37

ashground
Member
From: Vancouver, Canada
Registered: 2005-01-07
Posts: 63
Website

Generate a nonce for a new user

I’m trying to write an external script that manages Textpattern users. The problem I’m running into is creating a nonce when adding a user to the SQL. If I enter in the information for a new user without a nonce, when I try logging in I’m left at a screen that says “Please reload”.

What should this nonce value be in order to be a valid user?

Offline

#2 2007-07-12 18:34:22

ashground
Member
From: Vancouver, Canada
Registered: 2005-01-07
Posts: 63
Website

Re: Generate a nonce for a new user

Solved my own question. Just needed to look at the php longer.

In case people are wondering later on, the nonce is “md5(uniqid(rand(), true));”.

Offline

Board footer

Powered by FluxBB