mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 09:42:29 +08:00
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:
committed by
GitHub
parent
412a21873a
commit
a5c28edb44
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user