fixed problem with basic auth, added new message window
This commit is contained in:
parent
efecb823cd
commit
a861de4eb4
6 changed files with 79 additions and 23 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,6 @@ define(function() {
|
|||
}
|
||||
|
||||
HostApp.loggedIn = function() {
|
||||
|
||||
controller.loggedIn();
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ function start(view) {
|
|||
|
||||
if (view == "oauth") {
|
||||
require(["controller/Oauth"], function(Oauth) {
|
||||
|
||||
|
||||
tentia_instance = new Oauth();
|
||||
tentia_instance.authenticate();
|
||||
|
||||
|
|
Reference in a new issue