Browse Source

Fixes #3848 - Remove api user and password for sipgate integration.

Rolf Schmidt 3 years ago
parent
commit
8a97a41dc9

+ 0 - 3
app/assets/javascripts/app/controllers/_integration/sipgate_io.coffee

@@ -87,9 +87,6 @@ class Form extends App.Controller
     config = @config
     cleanupInput = @cleanupInput
 
-    config.api_user = cleanupInput(@$('input[name=api_user]').val())
-    config.api_password = cleanupInput(@$('input[name=api_password]').val())
-
     # default caller_id
     default_caller_id = @$('input[name=default_caller_id]').val()
     config.outbound.default_caller_id = cleanupInput(default_caller_id)

+ 0 - 19
app/assets/javascripts/app/views/integration/sipgate.jst.eco

@@ -99,25 +99,6 @@
     </table>
   </div>
 
-  <p><%- @T('In order for Zammad to access %s, a %s API user and password must be stored here', 'Sipgate', 'Sipgate') %>:<p>
-  <div class="settings-entry">
-    <table class="settings-list" style="width: 100%;">
-      <thead>
-        <tr>
-          <th width="20%"><%- @T('Type') %>
-          <th width="80%"><%- @T('Content') %>
-      </thead>
-      <tbody>
-        <tr>
-          <td class="settings-list-row-control"><%- @T('API User') %>
-          <td class="settings-list-control-cell"><input type="input" class="form-control form-control--small js-select" value="<%= @config.api_user %>" name="api_user" placeholder="someuser@example.com">
-        <tr>
-          <td class="settings-list-row-control"><%- @T('API Password') %>
-          <td class="settings-list-control-cell"><input type="password" class="form-control form-control--small js-select" value="<%= @config.api_password %>" name="api_password" placeholder="">
-      </tbody>
-    </table>
-  </div>
-
   <h2><%- @T('User assignment to Sipgate users') %></h2>
 
   <p><%- @T('User assignment to Sipgate users to be able to offer extended like open new ticket screen on answering a call.') %>

+ 0 - 13
i18n/zammad.pot

@@ -362,10 +362,6 @@ msgstr ""
 msgid "API Key"
 msgstr ""
 
-#: app/assets/javascripts/app/views/integration/sipgate.jst.eco
-msgid "API Password"
-msgstr ""
-
 #: db/seeds/settings.rb
 msgid "API Password Access"
 msgstr ""
@@ -378,10 +374,6 @@ msgstr ""
 msgid "API Token Access"
 msgstr ""
 
-#: app/assets/javascripts/app/views/integration/sipgate.jst.eco
-msgid "API User"
-msgstr ""
-
 #: app/assets/javascripts/app/views/import/freshdesk.jst.eco
 #: app/assets/javascripts/app/views/import/zendesk.jst.eco
 #: app/assets/javascripts/app/views/integration/github.jst.eco
@@ -1947,7 +1939,6 @@ msgstr ""
 #: app/assets/javascripts/app/models/knowledge_base_answer.coffee
 #: app/assets/javascripts/app/models/text_module.coffee
 #: app/assets/javascripts/app/views/integration/placetel.jst.eco
-#: app/assets/javascripts/app/views/integration/sipgate.jst.eco
 msgid "Content"
 msgstr ""
 
@@ -4823,10 +4814,6 @@ msgstr ""
 msgid "In addition, we have found emails in your mailbox that are older than %s weeks. You can import such emails as an \"archive\", which means that no notifications are sent and the tickets have the status \"closed\". However, you can find them in Zammad anytime using the search function. "
 msgstr ""
 
-#: app/assets/javascripts/app/views/integration/sipgate.jst.eco
-msgid "In order for Zammad to access %s, a %s API user and password must be stored here"
-msgstr ""
-
 #: app/assets/javascripts/app/views/integration/placetel.jst.eco
 msgid "In order for Zammad to access %s, the %s API token must be stored here"
 msgstr ""