瀏覽代碼

Fix inwx account without Mobile TAN

Jan-Otto Kröpke 7 年之前
父節點
當前提交
26421684dc
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      dnsapi/dns_inwx.sh

+ 2 - 1
dnsapi/dns_inwx.sh

@@ -158,7 +158,8 @@ _inwx_login() {
   export _H1
 
   #https://github.com/inwx/php-client/blob/master/INWX/Domrobot.php#L71
-  if _contains "$response" "tfa"; then
+  if _contains "$response" "<member><name>code</name><value><int>1000</int></value></member>" \
+    && _contains "$response" "<member><name>tfa</name><value><string>GOOGLE-AUTH</string></value></member>"; then
     if [ -z "$INWX_Shared_Secret" ]; then
       _err "Mobile TAN detected."
       _err "Please define a shared secret."