Skip to content

Commit

Permalink
Added documentation for new parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellrowley committed Jan 28, 2022
1 parent 2ef1fb5 commit 4b38be3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x360ce.Web/Security/Controls/CreateUser.ascx.cs
Expand Up @@ -134,6 +134,11 @@ protected override void OnInit(EventArgs e)
/// <summary>
/// Generates a pseudorandom password that cannot be predicted.
/// </summary>
/// <param name="length">
/// The length of the password to be generated,
/// if left to zero - a random password-length will be generated.
/// </param>
/// <param name="charlist">A list of characters from which the password can consist of.</param>
/// <returns>A string representing a securely-generated password.</returns>
public string NewPassword(uint length = 0, string charlist = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"£$%^&*()_+=-{}[]:@~;'#/,.<>?\\")
{
Expand Down

0 comments on commit 4b38be3

Please sign in to comment.