mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
backwards compat issues with change email/password
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Bit.Core.Models.Api
|
||||
{
|
||||
@ -19,4 +20,23 @@ namespace Bit.Core.Models.Api
|
||||
[Required]
|
||||
public DataReloadRequestModel Data { get; set; }
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
public class EmailRequestModel_Old
|
||||
{
|
||||
[Required]
|
||||
[EmailAddress]
|
||||
[StringLength(50)]
|
||||
public string NewEmail { get; set; }
|
||||
[Required]
|
||||
[StringLength(300)]
|
||||
public string MasterPasswordHash { get; set; }
|
||||
[Required]
|
||||
[StringLength(300)]
|
||||
public string NewMasterPasswordHash { get; set; }
|
||||
[Required]
|
||||
public string Token { get; set; }
|
||||
[Required]
|
||||
public CipherRequestModel[] Ciphers { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Bit.Core.Models.Api
|
||||
{
|
||||
@ -13,4 +14,17 @@ namespace Bit.Core.Models.Api
|
||||
[Required]
|
||||
public DataReloadRequestModel Data { get; set; }
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
public class PasswordRequestModel_Old
|
||||
{
|
||||
[Required]
|
||||
[StringLength(300)]
|
||||
public string MasterPasswordHash { get; set; }
|
||||
[Required]
|
||||
[StringLength(300)]
|
||||
public string NewMasterPasswordHash { get; set; }
|
||||
[Required]
|
||||
public CipherRequestModel[] Ciphers { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -59,6 +59,17 @@ namespace Bit.Core.Models.Api
|
||||
|
||||
return existingCipher;
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
public Folder ToFolder(Guid userId)
|
||||
{
|
||||
return new Folder
|
||||
{
|
||||
Id = new Guid(Id),
|
||||
UserId = userId,
|
||||
Name = Name
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public class CipherShareRequestModel : IValidatableObject
|
||||
|
Reference in New Issue
Block a user