Joomla account activation token

I'm interested in creating a Joomla extension for sending out user account activation emails. I need to know about the activation token.

The activation token appears to be hex code. The token generated when I registered my test account was 1c99b9e50f765fe8e25e2d6f8d328e78

Where does this code come from? Is it saved anywhere to the database, and/or is it created based upon info submitted by the user - or something else?

I need to know this so that I can generate it myself.

Thanks for any help!

Regards,
Jon
Jonathan GreenbergAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
There may be a Joomla supported way of doing this - but this is how I handle user activations.

If you want to send out a one time use key you can use a GUID - this can be created from a MySQL database like so

SELECT UUID();

Open in new window


What you can do with an activation email is setup a table (or field on the user table) that can hold this key.
Generate the key above and associate it with the user. Add the key to your activation URL.
In the controller (or whatever process you are using to process in the incoming link) look for the key in the URL check against the DB - if ok proceed and invalidate the key (remove it).
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jonathan GreenbergAuthor Commented:
Very helpful, Julian. Thanks so much!
0
Julian HansenCommented:
You are welcome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.