add developer easy login

This commit is contained in:
Manuel Araoz 2014-11-04 10:58:32 -03:00
commit 0a91883096
3 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,16 @@
'use strict';
angular.module('copayApp.controllers').controller('DevLoginController', function($scope, $rootScope, $routeParams, identityService) {
var mail = $routeParams.mail;
var password = $routeParams.password;
var form = {};
form.email = {};
form.password = {};
form.email.$modelValue = mail;
form.password.$modelValue = password;
identityService.open($scope, form);
});

View file

@ -70,6 +70,10 @@ angular
templateUrl: 'views/manage.html',
logged: true
})
.when('/devLogin/:mail/:password', {
templateUrl: 'views/devLogin.html',
logged: false
})
.otherwise({
templateUrl: 'views/errors/404.html',
title: 'Error'

2
views/devLogin.html Normal file
View file

@ -0,0 +1,2 @@
<div class="settings" ng-controller="DevLoginController">
</div>