1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-23 05:55:13 -05:00

small fixes

This commit is contained in:
Kyle Spearrin 2017-05-20 10:36:33 -04:00
parent 8db1f1208b
commit c362f88246
2 changed files with 0 additions and 6 deletions

View File

@ -5,7 +5,6 @@ namespace Bit.Core.Models.Api
{ {
public class UpdateProfileRequestModel public class UpdateProfileRequestModel
{ {
[Required]
[StringLength(50)] [StringLength(50)]
public string Name { get; set; } public string Name { get; set; }
[StringLength(50)] [StringLength(50)]

View File

@ -178,11 +178,6 @@ namespace Bit.Core.Repositories.SqlServer
public Task UpdateUserEmailPasswordAndCiphersAsync(User user, IEnumerable<Cipher> ciphers, IEnumerable<Folder> folders) public Task UpdateUserEmailPasswordAndCiphersAsync(User user, IEnumerable<Cipher> ciphers, IEnumerable<Folder> folders)
{ {
if(ciphers.Count() == 0)
{
return Task.FromResult(0);
}
using(var connection = new SqlConnection(ConnectionString)) using(var connection = new SqlConnection(ConnectionString))
{ {
connection.Open(); connection.Open();