Skip to content

Commit

Permalink
Merge pull request #1750 from jkroepke/fix_inwx_tfa
Browse files Browse the repository at this point in the history
Fix inwx account without Mobile TAN
  • Loading branch information
neil committed Jul 29, 2018
2 parents f286f90 + d3c9d0b commit c883ec4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dnsapi/dns_inwx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit c883ec4

Please sign in to comment.