Skip to content

Commit

Permalink
Fixed broken logout link in AdminUI. Fixes #255
Browse files Browse the repository at this point in the history
  • Loading branch information
otsakir committed May 20, 2015
1 parent d5e1b2c commit 3a613b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion restcomm/restcomm.ui/src/main/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
<li class="disabled"><a href="#"></a> </li>
<li class=""><a href="#" onclick="return false;" ng-click="showRegisterAccountModal();"><i class="fa fa-plus"></i> Create New Account...</a> </li>
<li class="divider"></li>
<li><a href="#/login" ng-click="logout()"><i class="fa fa-sign-out"></i> Sign Out</a></li>
<li><a href="#" ng-click="logout()"><i class="fa fa-sign-out"></i> Sign Out</a></li>
</ul>
</li>
</ul>
Expand Down
8 changes: 4 additions & 4 deletions restcomm/restcomm.ui/src/main/webapp/resources/js/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ rcServices.service('AuthService', function(Auth,md5) {
serviceInstance.getProfile = function() {
return Auth.authz.profile;
}
/*
getLoggedUser: function() {
return SessionService.get('logged_user');
},*/
serviceInstance.logout = function() {
Auth.authz.logout();
}


return serviceInstance;

Expand Down

0 comments on commit 3a613b6

Please sign in to comment.