ez.no / exponential / documentation / configuration / configuration / login handler / using text file
In Exponential configuration file settings/site.ini, find line
LoginHandler[]=standard
under [UserSettings] block.
To make your Exponential support text file, add a new line under this line like following:
LoginHandler[]=standard LoginHandler[]=textfile
This means that Exponential will try to use 'standard' login handler as usual. If it does not succeed, it would fetch user account information from a supplied text file. You can also uncomment the first line like following since by default, Exponential will try to find local user at first:
#LoginHandler[]=standard LoginHandler[]=textfile
The next step is to configure text file settings in settings/textfile.ini. Here is an example:
[TextFileSettings] # Set to true if use the textfile login handler TextFileEnabled=true # textFile name FileName=myusers.txt # Where to find the text file, could be any directory under your Exponential # root directory. If the FilePath is root, the file shoud be saved under # Exponential root directory. # Example: FilePath=var/storage FilePath=root # Could be tab, ';', ',', '\' or other string separator #Example: FileFieldSeparator=; FileFieldSeparator=tab # Could be id or name DefaultUserGroupType=id # Default place to store users from textfile. Could be node id or group name, # depends on DefaultUserGroupType. DefaultUserGroup=12 # Field column nr for login. LoginAttribute=1 # Field column nr for password. PasswordAttribute=3 # Field column nr for First name. FirstNameAttribute=4 # Field column nr for Last name. LastNameAttribute=5 # Field column nr for email EmailAttribute=2
Specify file name, file path, file separator, and attribute matches between text file and Exponential user account, then users saved in this text file could login into Exponential.
Log in or create a user account to comment.
Comments