P
pbd22
Hi.
I have got the email part working.
I have it set up so there is a temp_table of the registration.
There is a confirm_code column with an encrypted ID.
My question is this - it seems that a lot of online guides are
saying simply access the temp_table and look for the encrypted
id returned by the user (from the sent email). if the ID in the
returned query string matches the encrypted ID in the table,
then the user is validated.
But, I am wondering if i should be storing the unencrypted ID in
the DB and then encrypt the ID sent to the user. When the
user returns the key, I unencrypt it and if there is a match in the
table, the user is validated. This seems a bit more secure
to me because the key that gets transmitted will not be the same as
the access key in the DB (which is what the online errata seems to
prefer).
thoughts?
I have got the email part working.
I have it set up so there is a temp_table of the registration.
There is a confirm_code column with an encrypted ID.
My question is this - it seems that a lot of online guides are
saying simply access the temp_table and look for the encrypted
id returned by the user (from the sent email). if the ID in the
returned query string matches the encrypted ID in the table,
then the user is validated.
But, I am wondering if i should be storing the unencrypted ID in
the DB and then encrypt the ID sent to the user. When the
user returns the key, I unencrypt it and if there is a match in the
table, the user is validated. This seems a bit more secure
to me because the key that gets transmitted will not be the same as
the access key in the DB (which is what the online errata seems to
prefer).
thoughts?