Trim the address/password because people are idiots

This commit is contained in:
Garry Newman
2016-03-03 13:28:26 +00:00
parent e4452d48ab
commit 9820204a5b
+3
View File
@@ -15,6 +15,9 @@ function ConnectionController( $scope, rconService, $routeParams, $timeout )
$scope.Connect = function () $scope.Connect = function ()
{ {
$scope.Address = $scope.Address.trim();
$scope.Password = $scope.Password.trim();
$scope.LastErrorMessage = null; $scope.LastErrorMessage = null;
rconService.Connect( $scope.Address, $scope.Password ); rconService.Connect( $scope.Address, $scope.Password );
} }