(html) Improve login page

This commit is contained in:
Francis Lachapelle
2015-09-15 11:42:47 -04:00
parent c464791d92
commit c4ad8a64fa
3 changed files with 60 additions and 39 deletions

View File

@@ -9,14 +9,17 @@
/**
* @ngInject
*/
LoginController.$inject = ['$scope', 'Dialog', '$mdDialog', 'Authentication'];
function LoginController($scope, Dialog, $mdDialog, Authentication) {
LoginController.$inject = ['$scope', '$timeout', 'Dialog', '$mdDialog', 'Authentication'];
function LoginController($scope, $timeout, Dialog, $mdDialog, Authentication) {
var vm = this;
vm.creds = { username: cookieUsername, password: null };
vm.login = login;
vm.showAbout = showAbout;
vm.showLogin = false;
$timeout(function() { vm.showLogin = true; }, 100);
function login() {
Authentication.login(vm.creds)
.then(function(url) {