webdav portal password reset added
This commit is contained in:
parent
4bae47e17f
commit
599e9a8865
48 changed files with 1163 additions and 117 deletions
|
@ -1625,6 +1625,11 @@ namespace WebsitePanel.EnterpriseServer
|
|||
return ObjectUtils.FillObjectFromDataReader<AccessToken>(DataProvider.GetAccessTokenByAccessToken(accessToken, type));
|
||||
}
|
||||
|
||||
public static void DeleteAccessToken(Guid accessToken, AccessTokenTypes type)
|
||||
{
|
||||
DataProvider.DeleteAccessToken(accessToken, type);
|
||||
}
|
||||
|
||||
public static void DeleteAllExpiredTokens()
|
||||
{
|
||||
DataProvider.DeleteExpiredAccessTokens();
|
||||
|
@ -1632,7 +1637,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
|
||||
private static string GenerateUserPasswordResetLink(int itemId, int accountId)
|
||||
{
|
||||
string passwordResetUrlFormat = "account/password-reset";
|
||||
string passwordResetUrlFormat = "account/password-reset/step-2";
|
||||
|
||||
var settings = SystemController.GetSystemSettings(SystemSettings.WEBDAV_PORTAL_SETTINGS);
|
||||
|
||||
|
@ -1656,7 +1661,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
AccessTokenGuid = Guid.NewGuid(),
|
||||
ItemId = itemId,
|
||||
AccountId = accountId,
|
||||
Type = type,
|
||||
TokenType = type,
|
||||
ExpirationDate = DateTime.Now.AddHours(12)
|
||||
};
|
||||
|
||||
|
@ -1665,6 +1670,11 @@ namespace WebsitePanel.EnterpriseServer
|
|||
return token;
|
||||
}
|
||||
|
||||
public static void SetAccessTokenResponse(Guid accessToken, string response)
|
||||
{
|
||||
DataProvider.SetAccessTokenResponseMessage(accessToken, response);
|
||||
}
|
||||
|
||||
public static void UpdateOrganizationPasswordSettings(int itemId, OrganizationPasswordSettings settings)
|
||||
{
|
||||
TaskManager.StartTask("ORGANIZATION", "UPDATE_PASSWORD_SETTINGS");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue