Removing Meechum specific code

This commit is contained in:
kevgliss 2015-08-29 10:10:42 -07:00
parent 70ccd137e1
commit 783acf6d8c
4 changed files with 3 additions and 37 deletions

View File

@ -25,7 +25,7 @@ var lemur = angular
}); });
$authProvider.oauth2({ $authProvider.oauth2({
name: 'ping', name: 'example',
url: 'http://localhost:5000/api/1/auth/ping', url: 'http://localhost:5000/api/1/auth/ping',
redirectUri: 'http://localhost:3000/', redirectUri: 'http://localhost:3000/',
clientId: 'client-id', clientId: 'client-id',

View File

@ -3,8 +3,8 @@
<div class="login"> <div class="login">
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12"> <div class="col-xs-12 col-sm-12 col-md-12">
<button class="btn btn-block btn-default" ng-click="authenticate('ping')"> <button class="btn btn-block btn-default" ng-click="authenticate('Example')">
Login with Meechum Login with Example
</button> </button>
</div> </div>
</div> </div>

View File

@ -1,18 +0,0 @@
'use strict';
angular.module('lemur')
.config(function config($routeProvider) {
$routeProvider.when('/unlock', {
templateUrl: '/angular/authentication/unlock/unlock.tpl.html',
controller: 'UnlockCtrl'
});
})
.controller('UnlockCtrl', function ($scope, $location, lemurRestangular, messageService) {
$scope.unlock = function () {
lemurRestangular.one('unlock').customPOST({'password': $scope.password})
.then(function (data) {
messageService.addMessage(data);
$location.path('/dashboard');
});
};
});

View File

@ -1,16 +0,0 @@
<h2 class="featurette-heading">Unlock <span class="text-muted"><small>Assume 9 is twice 5; how will you write 6 times 5 in the same system of notation?</small></span></h2>
<form class="form-horizontal" _lpchecked="1">
<fieldset class="col-lg-offset-4">
<div class="form-group">
<div class="col-lg-4">
<input type="password" ng-model="password" placeholder="Password" class="form-control"/>
</div>
</div>
<hr class="featurette-divider">
<div class="form-group">
<div class="col-lg-4">
<button ng-click="unlock()" class="btn btn-success">Unlock</button>
</div>
</div>
</fieldset>
</form>