umAddUserGoAhead WebServer APIGoAhead EMF

Synopsis

Add a user to the user database.

Prototype

 #include "um.h" 


 int umAddUser (char_t * user,
     char_t * password,
     char_t * group,
     int prot,
     int enable)

Parameters

useruser ID
password password
groupuser group
prot delete protection; TRUE if protected
disabledTRUE if user is disabled; FALSE if user is enabled

Description

User is added. The password, which is passed to this function in clear text, is XOR encrypted before persisting.

Return Value

0 if successful or -1 on error.

Example

nCheck = AddUser(T("misterripley"), 
     T("talented"), 
     T("admin"),  
     FALSE,  TRUE);
	

See Also

umDeleteUser()