Merge pull request #3633 from FinnStutzenstein/saml-changes
Changes needed for the saml plugin: It is possible now to hook into t…
This commit is contained in:
commit
79700caefb
@ -1638,35 +1638,38 @@ angular.module('OpenSlidesApp.users.site', [
|
|||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|
||||||
.factory('Logout', [
|
.factory('UserMenu', [
|
||||||
'$http',
|
'$http',
|
||||||
'OpenSlides',
|
'OpenSlides',
|
||||||
function ($http, OpenSlides) {
|
'ngDialog',
|
||||||
return function () {
|
'UserProfileForm',
|
||||||
$http.post('/users/logout/').then(function (response) {
|
'UserPasswordForm',
|
||||||
// Success: User logged out, so reboot OpenSlides.
|
function ($http, OpenSlides, ngDialog, UserProfileForm, UserPasswordForm) {
|
||||||
OpenSlides.reboot();
|
return {
|
||||||
});
|
logout: function () {
|
||||||
|
$http.post('/users/logout/').then(function (response) {
|
||||||
|
// Success: User logged out, so reboot OpenSlides.
|
||||||
|
OpenSlides.reboot();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
editProfile: function () {
|
||||||
|
ngDialog.open(UserProfileForm.getDialog());
|
||||||
|
},
|
||||||
|
changePassword: function () {
|
||||||
|
ngDialog.open(UserPasswordForm.getDialog());
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|
||||||
.controller('userMenu', [
|
.controller('userMenu', [
|
||||||
'$scope',
|
'$scope',
|
||||||
'$http',
|
'UserMenu',
|
||||||
'ngDialog',
|
function($scope, UserMenu) {
|
||||||
'UserProfileForm',
|
$scope.logout = UserMenu.logout;
|
||||||
'UserPasswordForm',
|
$scope.editProfile = UserMenu.editProfile;
|
||||||
'Logout',
|
$scope.changePassword = UserMenu.changePassword;
|
||||||
function($scope, $http, ngDialog, UserProfileForm, UserPasswordForm, Logout) {
|
|
||||||
$scope.logout = Logout;
|
|
||||||
|
|
||||||
$scope.editProfile = function () {
|
|
||||||
ngDialog.open(UserProfileForm.getDialog());
|
|
||||||
};
|
|
||||||
$scope.changePassword = function () {
|
|
||||||
ngDialog.open(UserPasswordForm.getDialog());
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user