Flicks FAQ: Usermodify


Back to the top of the FAQ

Applies To AuthentiX OCX Component

UserModify

The UserModify method modifies the specified user in the AuthentiX database.

Syntax

UserModify(oldUserName, newUserName, password, notes, expirationDate)

Parameters

oldUserName
Specifies the name of the user to modify.
newUserName
Specifies the new name (can be the same).
password
Specifies the user's new password
notes
New notes associated with the the user
expirationDate
Specifies the new date/time the user's access expires (0 for Never)

Notes

If password encryption is enabled, and the password was retrieved using UserPassword remember that UserPassword will return the password in its encrypted form.

Return Values

Returns 0 if the user is modified, 2 if the user does not exist, 2=failed

Example

The following example modifies 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.UserModify("PeterXX", "PeterYY", "PeterBlue", "Peters New Notes", now + 30) 
%>
<%	If result = 0 Then %>
Successfully modified
<% Else %>
Could not modify him
<% End If %>

 

Applies To

AuthentiX OCX Component

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

Back to the top of the FAQ