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.
This commit is contained in:
Matteo Piovanelli
2022-01-21 08:46:07 +01:00
committed by GitHub
parent 412a21873a
commit a5c28edb44

View File

@@ -9,6 +9,12 @@ namespace Orchard.Security {
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;
_password = password;