1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-11 08:08:14 -05:00

Add checksum to Login Uri models (#3318)

Co-authored-by: Carlos Gonçalves <cgoncalves@bitwarden.com>
This commit is contained in:
Matt Gibson 2023-11-07 11:44:13 -05:00 committed by GitHub
parent e401fc0983
commit 778340ff16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -74,17 +74,21 @@ public class CipherLoginModel
public CipherLoginUriModel(CipherLoginData.CipherLoginUriData uri)
{
Uri = uri.Uri;
UriChecksum = uri.UriChecksum;
Match = uri.Match;
}
[EncryptedString]
[EncryptedStringLength(10000)]
public string Uri { get; set; }
[EncryptedString]
[EncryptedStringLength(10000)]
public string UriChecksum { get; set; }
public UriMatchType? Match { get; set; } = null;
public CipherLoginData.CipherLoginUriData ToCipherLoginUriData()
{
return new CipherLoginData.CipherLoginUriData { Uri = Uri, Match = Match, };
return new CipherLoginData.CipherLoginUriData { Uri = Uri, UriChecksum = UriChecksum, Match = Match, };
}
}
}

View File

@ -26,6 +26,7 @@ public class CipherLoginData : CipherData
public CipherLoginUriData() { }
public string Uri { get; set; }
public string UriChecksum { get; set; }
public UriMatchType? Match { get; set; } = null;
}
}