WiP - some improvements to the login form

This commit is contained in:
Ludovic Marcotte
2015-02-13 09:14:10 -05:00
committed by Francis Lachapelle
parent fcd5abfafc
commit e5726d2840
2 changed files with 33 additions and 11 deletions
+14 -1
View File
@@ -6,7 +6,7 @@
angular.module('SOGo.MainUI', ['SOGo.Authentication', 'SOGo.UI'])
.controller('loginController', ['$scope', 'Authentication', function($scope, Authentication) {
.controller('loginController', ['$scope', '$mdDialog', 'Authentication', function($scope, $mdDialog, Authentication) {
$scope.warning = false;
$scope.creds = { username: null, password: null };
$scope.login = function(creds) {
@@ -19,5 +19,18 @@
});
return false;
};
$scope.showAbout = function() {
var alert;
alert = $mdDialog.alert({
title: 'About SOGo',
content: 'This is SOGo v3!',
ok: 'OK'
});
$mdDialog
.show( alert )
.finally(function() {
alert = undefined;
});
};
}]);
})();