]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
bugfix for OTP "challenge" form handling
authorDaniel Lenski <dlenski@gmail.com>
Wed, 3 Apr 2019 14:22:08 +0000 (17:22 +0300)
committerDaniel Lenski <dlenski@gmail.com>
Wed, 3 Apr 2019 14:22:11 +0000 (17:22 +0300)
commit3d4701a10c07a8987418b4a3387fdd4bcd71a2b4
tree55c216e65c225d38af28e9324e6a4a602886fbe9
parent5a3f242e7f778836f1645fb6479953e369a8f81e
bugfix for OTP "challenge" form handling

In the patch entitled 'Recognise auth forms named "challenge" as token
requests' (commit 51f8feb6, released in v8.00) the condition for using an
OTP token in an AnyConnect login form was changed from:

  (field is named `secondary_password`)

… to:

  (field is named `secondary_password`) AND (form is named `challenge`)

This was almost certainly a mistake, and should have been as follows:

  (field is named `secondary_password`) OR (form is named `challenge`)

This patch rewrites the condition to do just that, in a clearer form, and
should fix GitLab issue #24 (https://gitlab.com/openconnect/openconnect/issues/24#note_157035052).

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
auth.c