Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
Pages: 1