From 7b14044c534202cee7ccedf82a9abb1dbb79fd94 Mon Sep 17 00:00:00 2001 From: Tobias Klika Date: Thu, 6 Feb 2014 13:28:28 +0100 Subject: [PATCH] password has to be at least 6 chars long --- PocketSharp.Tests/StressTests.cs | 2 +- PocketSharp/Components/Account.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PocketSharp.Tests/StressTests.cs b/PocketSharp.Tests/StressTests.cs index 845cf22..52cdaf2 100644 --- a/PocketSharp.Tests/StressTests.cs +++ b/PocketSharp.Tests/StressTests.cs @@ -59,7 +59,7 @@ namespace PocketSharp.Tests public async Task AreItemsRetrievedProperlyWithoutLimit() { List items = await client.Get(state: State.all); - Assert.True(items.Count > 0); + Assert.True(items.Count > 6000); } [Fact] diff --git a/PocketSharp/Components/Account.cs b/PocketSharp/Components/Account.cs index 487014b..9946f7b 100644 --- a/PocketSharp/Components/Account.cs +++ b/PocketSharp/Components/Account.cs @@ -138,7 +138,7 @@ namespace PocketSharp throw new FormatException("(2) Invalid username. Please only use letters, numbers, and/or dashes and between 1-20 characters."); } - if (password.Length < 3) + if (password.Length < 6) { throw new FormatException("(3) Invalid password."); }