UserService.GeneratePassword Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

GeneratePassword(Int32, Boolean, Boolean, Boolean, Boolean)

Generates a random password.

public static string GeneratePassword(int requiredLength = 6, bool requireDigit = true, bool requireLower = true, bool requireUpper = true, bool requireSpecial = true)

Parameters

requiredLength
System.Int32
requireDigit
System.Boolean
requireLower
System.Boolean
requireUpper
System.Boolean
requireSpecial
System.Boolean

Returns

System.String

A random password string.