add developer easy login
This commit is contained in:
parent
e9eb311339
commit
0a91883096
3 changed files with 22 additions and 0 deletions
16
js/controllers/devLogin.js
Normal file
16
js/controllers/devLogin.js
Normal 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);
|
||||
|
||||
});
|
||||
|
|
@ -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
2
views/devLogin.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<div class="settings" ng-controller="DevLoginController">
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue