Skip to content

Commit

Permalink
Disable auto-login, still show client select screen
Browse files Browse the repository at this point in the history
The client select screen is still shown, but when selecting, instead of
logging in automatically, it pre-fills the username and asks for password.

Fixes #164
  • Loading branch information
ammendonca committed Apr 19, 2018
1 parent f0e9577 commit 1fc328b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/webapp/resources/js/controllers/sign-in.js
Expand Up @@ -177,13 +177,19 @@ olyMod.controller('SignInCtrl', function ($scope, $rootScope, $location, $timeou
$scope.loginAs = function(login) {
$scope.sip.username = login;
$scope.mirrorUsername();
$scope.showLoginOther = true;
// disabled as it's not possible to retrieve plaintext password
// https://github.com/restcomm/olympus/issues/164
/*
angular.forEach($scope.predefinedClients, function(client) {
if (client.login === login) {
$scope.sip.password = client.password;
}
});
*/
$timeout(function() {
$scope.connect();
// $scope.connect();
angular.element("input[type=password]").focus();
});
};

Expand Down

0 comments on commit 1fc328b

Please sign in to comment.