fixed problem with basic auth, added new message window

This commit is contained in:
Jeena Paradies 2012-12-26 17:12:20 +01:00
parent efecb823cd
commit a861de4eb4
6 changed files with 79 additions and 23 deletions

View file

@ -78,8 +78,8 @@ function(HostApp, Paths, Hmac) {
var data = JSON.parse(resp.responseText);
those.authRequest(data);
}
Paths.getURL(Paths.mkApiRootPath("/apps"), "POST", callback, JSON.stringify(those.app_info));
});
Paths.getURL(Paths.mkApiRootPath("/apps"), "POST", callback, JSON.stringify(those.app_info), false);
}, null, false);
}
Oauth.prototype.authRequest = function(register_data) {
@ -148,7 +148,7 @@ function(HostApp, Paths, Hmac) {
HostApp.setSecret(access["mac_key"]);
HostApp.setStringForKey(access["mac_algorithm"], "user_mac_algorithm");
HostApp.setStringForKey(access["token_type"], "user_token_type");
HostApp.loggedIn();
}

View file

@ -47,7 +47,6 @@ define(function() {
}
HostApp.loggedIn = function() {
controller.loggedIn();
}

View file

@ -9,7 +9,7 @@ function start(view) {
if (view == "oauth") {
require(["controller/Oauth"], function(Oauth) {
tentia_instance = new Oauth();
tentia_instance.authenticate();