Trim the address/password because people are idiots
This commit is contained in:
@@ -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 );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user