Added User password_reset spec and some refactor

*Make returned error in errors array
*Use constants
This commit is contained in:
Jason Denney
2014-02-04 23:47:30 -05:00
parent 8110baf255
commit 38a716b132
3 changed files with 81 additions and 5 deletions
@@ -33,7 +33,7 @@
Ext.Msg.alert("Success", "New Password: "+data.password);
},
error: function(data,textStatus) {
Ext.Msg.alert( "Error", JSON.parse(data.responseText)["error"]);
Ext.Msg.alert( "Error", JSON.parse(data.responseText)["errors"][0]);
}
});
}