1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 23:03:32 +00:00

password hint

This commit is contained in:
Kyle Spearrin
2016-09-20 17:47:21 -04:00
parent 797a18b46a
commit 0219068bb6
14 changed files with 115 additions and 22 deletions

View File

@@ -61,6 +61,39 @@ function initApiService() {
});
};
ApiService.prototype.postPasswordHint = function (request, success, error) {
var self = this;
$.ajax({
type: 'POST',
url: self.baseUrl + '/accounts/password-hint',
data: JSON.stringify(request),
contentType: "application/json; charset=utf-8",
success: function (response) {
success();
},
error: function (jqXHR, textStatus, errorThrown) {
handleError(error, jqXHR, textStatus, errorThrown);
}
});
};
ApiService.prototype.register = function (request, success, error) {
var self = this;
$.ajax({
type: 'POST',
url: self.baseUrl + '/accounts/register',
data: JSON.stringify(request),
contentType: "application/json; charset=utf-8",
dataType: 'json',
success: function (response) {
success();
},
error: function (jqXHR, textStatus, errorThrown) {
handleError(error, jqXHR, textStatus, errorThrown);
}
});
};
// Site APIs
ApiService.prototype.getSite = function (id, success, error) {