mirror of
https://github.com/bitwarden/server
synced 2025-12-19 17:53:44 +00:00
add support for totp secret in login cipher data
This commit is contained in:
@@ -34,6 +34,9 @@ namespace Bit.Core.Models.Api
|
||||
[EncryptedString]
|
||||
[StringLength(10000)]
|
||||
public string Notes { get; set; }
|
||||
[EncryptedString]
|
||||
[StringLength(300)]
|
||||
public string Totp { get; set; }
|
||||
|
||||
public virtual Cipher ToCipher(Guid userId)
|
||||
{
|
||||
|
||||
@@ -30,6 +30,9 @@ namespace Bit.Core.Models.Api
|
||||
[EncryptedString]
|
||||
[StringLength(10000)]
|
||||
public string Notes { get; set; }
|
||||
[EncryptedString]
|
||||
[StringLength(300)]
|
||||
public string Totp { get; set; }
|
||||
|
||||
public CipherDetails ToCipherDetails(Guid userId)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user