From 456b8a0394c7cc5dc6ed8dd02f9a83383b05d63b Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 20 Nov 2017 16:20:13 -0800 Subject: [PATCH] GUACAMOLE-96: Remove unused field controller. --- .../src/main/resources/config/totpConfig.js | 1 - .../authenticationCodeFieldController.js | 29 ------------------- 2 files changed, 30 deletions(-) delete mode 100644 extensions/guacamole-auth-totp/src/main/resources/controllers/authenticationCodeFieldController.js diff --git a/extensions/guacamole-auth-totp/src/main/resources/config/totpConfig.js b/extensions/guacamole-auth-totp/src/main/resources/config/totpConfig.js index 54bb56c08..81cc07d63 100644 --- a/extensions/guacamole-auth-totp/src/main/resources/config/totpConfig.js +++ b/extensions/guacamole-auth-totp/src/main/resources/config/totpConfig.js @@ -26,7 +26,6 @@ angular.module('guacTOTP').config(['formServiceProvider', // Define field for the TOTP code provided by the user formServiceProvider.registerFieldType('GUAC_TOTP_CODE', { module : 'guacTOTP', - controller : 'authenticationCodeFieldController', templateUrl : 'app/ext/totp/templates/authenticationCodeField.html' }); diff --git a/extensions/guacamole-auth-totp/src/main/resources/controllers/authenticationCodeFieldController.js b/extensions/guacamole-auth-totp/src/main/resources/controllers/authenticationCodeFieldController.js deleted file mode 100644 index c9cecc68d..000000000 --- a/extensions/guacamole-auth-totp/src/main/resources/controllers/authenticationCodeFieldController.js +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/** - * Controller for the "GUAC_TOTP_CODE" field which prompts the user to enter - * the code generated by their authentication device. - */ -angular.module('guacTOTP').controller('authenticationCodeFieldController', ['$scope', '$element', - function authenticationCodeFieldController($scope, $element) { - - // STUB - -}]);