GUAC-586: Do not attempt to create users with blank/whitespace usernames.
This commit is contained in:
1 parent
12a1cded21
commit
2dcadd584e
1 file changed
+3
-1
@@ -249,7 +249,9 @@ angular.module('settings').directive('guacSettingsUsers', [function guacSettings
|
||||
* username specified.
|
||||
*/
|
||||
$scope.newUser = function newUser() {
|
||||
$location.url('/manage/' + encodeURIComponent(getDefaultDataSource()) + '/users/' + encodeURIComponent($scope.newUsername));
|
||||
var username = $scope.newUsername.trim();
|
||||
if (username)
|
||||
$location.url('/manage/' + encodeURIComponent(getDefaultDataSource()) + '/users/' + encodeURIComponent(username));
|
||||
};
|
||||
|
||||
}]
|
||||
|
||||
Reference in new issue
Block a user