Merge
This commit is contained in:
commit
ab1d7fef54
64 changed files with 3129 additions and 523 deletions
|
@ -211,6 +211,18 @@ namespace WebsitePanel.EnterpriseServer
|
|||
}
|
||||
|
||||
|
||||
[WebMethod]
|
||||
public ResultObject SendUserPasswordRequestSms(int itemId, int accountId, string reason, string phoneTo)
|
||||
{
|
||||
return OrganizationController.SendUserPasswordRequestSms(itemId, accountId, reason, phoneTo);
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public void SendUserPasswordRequestEmail(int itemId, int accountId, string reason, string mailTo, bool finalStep)
|
||||
{
|
||||
OrganizationController.SendUserPasswordRequestEmail(itemId, accountId, reason, mailTo, finalStep);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Domains
|
||||
|
|
|
@ -59,6 +59,12 @@ namespace WebsitePanel.EnterpriseServer
|
|||
return SystemController.GetSystemSettingsActive(settingsName, decrypt);
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public bool CheckIsTwilioEnabled()
|
||||
{
|
||||
return SystemController.CheckIsTwilioEnabled();
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public int SetSystemSettings(string settingsName, SystemSettings settings)
|
||||
{
|
||||
|
|
|
@ -57,13 +57,15 @@ namespace WebsitePanel.EnterpriseServer
|
|||
[WebMethod]
|
||||
public UserInfo GetUserById(int userId)
|
||||
{
|
||||
return UserController.GetUser(userId);
|
||||
UserInfoInternal uinfo = UserController.GetUser(userId);
|
||||
return (uinfo != null) ? new UserInfo(uinfo) : null;
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public UserInfo GetUserByUsername(string username)
|
||||
{
|
||||
return UserController.GetUser(username);
|
||||
UserInfoInternal uinfo = UserController.GetUser(username);
|
||||
return (uinfo != null) ? new UserInfo(uinfo) : null;
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
|
@ -136,9 +138,9 @@ namespace WebsitePanel.EnterpriseServer
|
|||
}
|
||||
|
||||
[WebMethod]
|
||||
public int AddUser(UserInfo user, bool sendLetter)
|
||||
public int AddUser(UserInfo user, bool sendLetter, string password)
|
||||
{
|
||||
return UserController.AddUser(user, sendLetter);
|
||||
return UserController.AddUser(user, sendLetter, password);
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
|
@ -175,7 +177,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
user.IsPeer = isPeer;
|
||||
user.IsDemo = isDemo;
|
||||
user.Username = username;
|
||||
user.Password = password;
|
||||
// user.Password = password;
|
||||
user.FirstName = firstName;
|
||||
user.LastName = lastName;
|
||||
user.Email = email;
|
||||
|
@ -192,7 +194,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
user.HtmlMail = htmlMail;
|
||||
user.CompanyName = companyName;
|
||||
user.EcommerceEnabled = ecommerceEnabled;
|
||||
return UserController.AddUser(user, sendLetter);
|
||||
return UserController.AddUser(user, sendLetter, password);
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue