mirror of
https://github.com/bitwarden/server.git
synced 2025-07-05 18:12:48 -05:00
[PM-4168] update keys for WebAuthnLoginCredential (#3506)
* allow update of webauthnlogincredential * Added Tests * fixed tests to use commands * addressing various feedback items
This commit is contained in:
@ -44,4 +44,15 @@ public class WebAuthnCredentialRepository : Repository<WebAuthnCredential, Guid>
|
||||
return results.ToList();
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<bool> UpdateAsync(WebAuthnCredential credential)
|
||||
{
|
||||
using var connection = new SqlConnection(ConnectionString);
|
||||
var affectedRows = await connection.ExecuteAsync(
|
||||
$"[{Schema}].[{Table}_Update]",
|
||||
credential,
|
||||
commandType: CommandType.StoredProcedure);
|
||||
|
||||
return affectedRows > 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user