Flicks FAQ: Useradd


Back to the top of the FAQ

UserAdd

The UserAdd method Adds the specified user to the AuthentiX database.

Syntax

UserAdd(userName, password, notes, expirationDate)

Parameters

userName
Specifies the name of the user to add.
password
Specifies the user's password
password
Notes associated with the the user
expirationDate
Specifies the date/time the user's access expires (0 for Never)

Return Values

Returns 0 if the user is added, 3 if the user exists already

Example

The following example adds the user PeterXX.

<% 
usingAuthentiXStandard = true
if (usingAuthentiXStandard) then
Set AuthX = Server.CreateObject("AUTHXOCX.AuthXOCXCtrl.1") 
else
Set AuthX = Server.CreateObject("AUTHXISP.AuthXOCXCtrl.1") 
protectedDomain = Request.ServerVariables("LOCAL_ADDR")
'protectedDomain = "hostheader.com"
AuthX.SetVirtualDomain protectedDomain, Request.ServerVariables("SCRIPT_NAME")
AuthX.SetVirtualDomainPassword("")
end if
%>
<% 
result = AuthX.UserAdd("PeterXX", "Peter", "Peters Notes", 0) 
%>
<% If result = 0 Then %>
Successfully added
<% Else %>
Could not add him
<% End If %>

 

Applies To

AuthentiX OCX Component

http://www.flicks.com/authentix/discover/main.htm

Back to the top of the FAQ