mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-31 08:04:54 +00:00
WiP - some improvements to the login form
This commit is contained in:
committed by
Francis Lachapelle
parent
fcd5abfafc
commit
e5726d2840
@@ -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;
|
||||
});
|
||||
};
|
||||
}]);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user