1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Reverts changes to logout logic. We don't want to redirect to an override url if the user explicitly logs out.

This commit is contained in:
mabashian 2019-12-11 10:56:46 -05:00 committed by Graham Mainwaring
parent d899e75ad7
commit 25cc341888

View File

@ -11,11 +11,7 @@ export default {
route: '/logout',
controller: ['Authorization', '$state', function(Authorization, $state) {
Authorization.logout().then( () =>{
if (global.$AnsibleConfig.login_redirect_override) {
window.location.replace(global.$AnsibleConfig.login_redirect_override);
} else {
$state.go('signIn');
}
$state.go('signIn');
});
}],