Commit 1759ddf9 authored by Jeremy Bokobza's avatar Jeremy Bokobza

No such thing as a wrong password to recover a wallet. the recovered wallet...

No such thing as a wrong password to recover a wallet. the recovered wallet will simply be a different one
parent 5eb5a26b
......@@ -123,12 +123,7 @@ namespace Breeze.Wallet.Controllers
{
// indicates that this wallet does not exist
return ErrorHelpers.BuildErrorResponse(HttpStatusCode.NotFound, "Wallet not found.", e.ToString());
}
catch (SecurityException e)
{
// indicates that the password is wrong
return ErrorHelpers.BuildErrorResponse(HttpStatusCode.Forbidden, "Wrong password, please try again.", e.ToString());
}
}
catch (Exception e)
{
return ErrorHelpers.BuildErrorResponse(HttpStatusCode.BadRequest, e.Message, e.ToString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment