UserLuaScript

A Lua script that contains functions to use for User management. If you set UserLuaScript, IDOL Server calls the following functions, if they exist:

  • password_complexity_check. A function to check whether a particular choice of user password fits the complexity criteria that you define in the script. This script must accept a string (the proposed password), and return a Boolean value (true if the password is acceptable, false otherwise).

    If you set both UserLuaScript and PasswordStrength, IDOL Server runs the Lua script check first, and then checks that the result also meets the PasswordStrength complexity criteria.

    If you do not define the password_complexity_check function in your script, IDOL Server logs a warning message and continues to check by using PasswordStrength (if set).

You can use any of the standard IDOL Lua functions in your script. See Lua Functions and Methods Reference.

Type: String
Default:  
Required: No
Configuration Section: User
Example: UserLuaScript=C:\IDOL\Scripts\UserScript.lua
See Also: PasswordStrength