Importing a profile also logs in

Closes #1773 
+1000

On Friday, November 14, 2014, Gustavo Maximiliano Cortez <
notifications@github.com> wrote:

> In js/controllers/importProfile.js:
>
> > @@ -30,8 +30,16 @@ angular.module('copayApp.controllers').controller('ImportProfileController',
> >          if (err && !iden) {
> >            $scope.error = (err.toString() || '').match('BADSTR') ? 'Bad password or corrupt profile file' : 'Unknown error';
> >          } else {
> > -          notification.info('Success', 'Profile imported successfully');
> > -          $location.path('/');
> > +          //simulate an angular form
>
> It 's not ok. You have to import the object "identity" and bind this with
>
> var firstWallet = iden.getLastFocusedWallet();
> controllerUtils.bindProfile(scope, iden, firstWallet);
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/bitpay/copay/pull/1801/files#r20357066>.
>


-- 
BitPay.com