GeneratePassword Method
Syntax
Context.Security.GeneratePassword as C ()
Returns
- resultCharacter
Returns a password suitable for use in the security data.
Description
Generate a password based on the rules defined in the security settings
Discussion
Context.Security.GeneratePassword() generates a password based on the rules defined in the web project security settings. Check Context.Security.CallResult.Success before using the return value.
Example
dim newPassword as C newPassword = Context.Security.GeneratePassword() if (Context.Security.CallResult.Success) then ' New password generated successfully else error_generate(Context.Security.CallResult.Text) end if