Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Forgot password

  • Loading branch information...
commit 7d6b2b8a7cb678b6e526e826c324ebd8b72d1662 1 parent 6043d05
@ermau authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 Windows Phone/StackMob.NET/StackMobClient.cs
View
17 Windows Phone/StackMob.NET/StackMobClient.cs
@@ -755,6 +755,23 @@ public void Login (IDictionary<string, string> arguments, Action success, Action
failure);
}
+ public void ForgotPassword (string username, Action success, Action<Exception> failure)
+ {
+ CheckArgument (username, "username");
+ if (success == null)
+ throw new ArgumentNullException ("success");
+ if (failure == null)
+ throw new ArgumentNullException ("failure");
+
+ var args = new Dictionary<string, string>();
+ args ["username"] = username;
+
+ var req = GetRequest (this.userObjectName + "/forgotPassword", "GET", query: GetQueryForArguments (args));
+ Execute (req,
+ s => success(),
+ failure);
+ }
+
public void Logout (Action success, Action<Exception> failure)
{
if (success == null)
Please sign in to comment.
Something went wrong with that request. Please try again.