From a5c28edb4403d0705a58cb32d9334047632ed937 Mon Sep 17 00:00:00 2001 From: Matteo Piovanelli Date: Fri, 21 Jan 2022 08:46:07 +0100 Subject: [PATCH] Added two constructors to CreateUserParams. (#8530) One is a restoration of the former constructor with 6 parameters. The other is a 3 parameters constructor using common defaults for the other properties. --- src/Orchard/Security/CreateUserParams.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Orchard/Security/CreateUserParams.cs b/src/Orchard/Security/CreateUserParams.cs index 6dba06ce9..f4645bfe0 100644 --- a/src/Orchard/Security/CreateUserParams.cs +++ b/src/Orchard/Security/CreateUserParams.cs @@ -8,6 +8,12 @@ namespace Orchard.Security { private readonly string _passwordAnswer; private readonly bool _isApproved; private readonly bool _forcePasswordChange; + + public CreateUserParams(string username, string password, string email) + : this(username, password, email, string.Empty, string.Empty, true, false) { } + + public CreateUserParams(string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved) + : this(username, password, email, passwordQuestion, passwordAnswer, isApproved, false) { } public CreateUserParams(string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, bool forcePasswordChange) { _username = username;