XF 2.1 Registration form

Ozzy47

Well-known member
On the registration form, XF gives the username, email and password fields a hash, so inspecting the element you see something like this, name="fe0afe9856f0b8ee972694221ce12077ebe0a237"

How would I go about getting that info in my registration php file so I can insert it into my table in the DB? I have looked in the core registration.php file, but I don't understand how it is done.
 
The registration form input values are fetched in Pub\Controller\Register.php function getRegistrationInput(),
which uses Service\User\RegisterForm.php function getHashedInputValues(), which calls upon getFieldName()
It matches the $hashedFields (username, email, password, timezone) to the form.
 
The registration form input values are fetched in Pub\Controller\Register.php function getRegistrationInput(),
which uses Service\User\RegisterForm.php function getHashedInputValues(), which calls upon getFieldName()
It matches the $hashedFields (username, email, password, timezone) to the form.

Hmm, ok thanks. looks like I have some poking around to do.
 
Back
Top Bottom