password reset fixes
This commit is contained in:
parent
69b1bc2f16
commit
087697ba7f
18 changed files with 133 additions and 46 deletions
|
@ -2613,10 +2613,16 @@ namespace WebsitePanel.EnterpriseServer
|
|||
|
||||
// add account
|
||||
items["Account"] = account;
|
||||
items["PswResetUrl"] = OrganizationController.GenerateUserPasswordResetLink(account.ItemId, account.AccountId);
|
||||
items["AccountDomain"] = account.PrimaryEmailAddress.Substring(account.PrimaryEmailAddress.IndexOf("@") + 1);
|
||||
items["DefaultDomain"] = org.DefaultDomain;
|
||||
|
||||
var passwordResetUrl = OrganizationController.GenerateUserPasswordResetLink(account.ItemId, account.AccountId);
|
||||
if (!string.IsNullOrEmpty(passwordResetUrl))
|
||||
{
|
||||
items["PswResetUrl"] = passwordResetUrl;
|
||||
}
|
||||
|
||||
|
||||
if (!String.IsNullOrEmpty(account.SamAccountName))
|
||||
{
|
||||
int idx = account.SamAccountName.IndexOf("\\");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue