• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Create an account with IP checking

Newbie Spellweaver
Joined
Jun 27, 2013
Messages
70
Reaction score
2
Hello, RageZONE!

At the moment, I use the global key (XXXX-XXXX-XXXX-XXXX) for register. But I would like to know if I can create an tool to allow just one account by IP.

If someone wants to release it or assist in the creation, I will thank you.

 
Junior Spellweaver
Joined
Mar 29, 2013
Messages
123
Reaction score
39
WZ_ACCOUNT_CREATE

add

Code:
-- validate that IP is unique
if exists (SELECT CustomerID from Accounts WHERE lastloginIP=@in_IP) begin
	select 2 as ResultCode, 'Already registered' as ResultMsg;
	return;
	end
 
Upvote 0
Newbie Spellweaver
Joined
Jun 27, 2013
Messages
70
Reaction score
2

Thank you so much!


Taking advantage, can I set an number of accounts by IP? Thank you!
 
Upvote 0