From aed2a5ec14beb778e92e837ec31d823d76eebacd Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Wed, 23 Jul 2014 17:11:33 +0200 Subject: [PATCH] Add _auth.storeCredentials again to login-existing --- src/js/controller/login-existing.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/js/controller/login-existing.js b/src/js/controller/login-existing.js index 4fe0bd2..20858c6 100644 --- a/src/js/controller/login-existing.js +++ b/src/js/controller/login-existing.js @@ -47,8 +47,14 @@ define(function(require) { return; } - $location.path('/desktop'); - $scope.$apply(); + appController._auth.storeCredentials(function(err) { + if (err) { + return $scope.onError(err); + } + + $location.path('/desktop'); + $scope.$apply(); + }); } function handleError(err) {