mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 13:54:58 -04:00
Added extra nesting .data and rename callback to be response not data
This commit is contained in:
parent
db3e1d73c6
commit
24bd133d9d
2 changed files with 31 additions and 31 deletions
|
@ -68,7 +68,7 @@ angular.module('LoginController', ['matrixService'])
|
|||
// try to login
|
||||
matrixService.login($scope.account.user_id, $scope.account.password).then(
|
||||
function(response) {
|
||||
if ("access_token" in response) {
|
||||
if ("access_token" in response.data) {
|
||||
$scope.feedback = "Login successful.";
|
||||
matrixService.setConfig({
|
||||
homeserver: $scope.account.homeserver,
|
||||
|
@ -79,7 +79,7 @@ angular.module('LoginController', ['matrixService'])
|
|||
$location.path("rooms");
|
||||
}
|
||||
else {
|
||||
$scope.feedback = "Failed to login: " + JSON.stringify(response);
|
||||
$scope.feedback = "Failed to login: " + JSON.stringify(response.data);
|
||||
}
|
||||
},
|
||||
function(error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue