Add support for openid with github and facebook

This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-10-04 11:40:56 -03:00
parent eebe638227
commit 4c034812d2
25 changed files with 712 additions and 251 deletions

View File

@@ -78,7 +78,7 @@
});
$scope.showAlert = function(title, content, parent) {
$scope.showAlert = function(title, content, parent, cb) {
$mdDialog.show(
$mdDialog.alert()
.parent(angular.element(document.querySelector(parent || '#popupContainer')))
@@ -86,7 +86,11 @@
.title(title)
.textContent(content)
.ok('Got it!')
);
).finally(function() {
if (cb) {
cb();
}
});
}
$scope.resize = function(geometry) {
@@ -206,7 +210,9 @@
});
socket.on('session end', function() {
$scope.showAlert('Session timed out!', 'Your session has expired and all of your instances have been deleted.', '#sessionEnd')
$scope.showAlert('Session timed out!', 'Your session has expired and all of your instances have been deleted.', '#sessionEnd', function() {
window.location.href = '/';
});
$scope.isAlive = false;
});