Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Osvaldon on September 30, 2016, 12:59:05 PM

Title: How to copy data to another database table after activation?
Post by: Osvaldon on September 30, 2016, 12:59:05 PM
How to copy data of a certain account from the 'members' table to another existing table ONCE that certain account is activated? I want to copy username, password hash, email and some other data to another table.
Title: Re: How to copy data to another database table after activation?
Post by: Kindred on September 30, 2016, 08:40:11 PM
Why?   What is your actual end goal?
Title: Re: How to copy data to another database table after activation?
Post by: Matthew K. on September 30, 2016, 08:59:04 PM
There are VERY few reasons why you'd need to do this or its a good idea. And my guess is that if you can't code it, it's not smart.
Title: Re: How to copy data to another database table after activation?
Post by: Osvaldon on October 01, 2016, 02:53:29 AM
Quote from: Kindred on September 30, 2016, 08:40:11 PM
Why?   What is your actual end goal?

I want users to register their server accounts through my website while keeping out forum related data and unactivated accounts out of the table.
Title: Re: How to copy data to another database table after activation?
Post by: Kindred on October 01, 2016, 09:11:42 AM
SO, you plan to use the SMF user data for actual server logins?

Actually, I would suggest that is a bad idea. They should have separate accounts for each -- at the very least, separate passwords
Title: Re: How to copy data to another database table after activation?
Post by: Osvaldon on October 01, 2016, 11:41:10 AM
I don't see any problems with such integration. Why do you think it's a bad idea?
Title: Re: How to copy data to another database table after activation?
Post by: Illori on October 01, 2016, 12:06:36 PM
if their forum account gets hacked, their server login has been hacked as well.