https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28787

--- Comment #77 from Kyle M Hall <[email protected]> ---
Created attachment 138706
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=138706&action=edit
Bug 28787: Fix misleading tests in two_factor_auth.t

We were having a "Patron is not authenticated yet" comment, but it was not
correct,
we set 'number' and 'id' in session, and waiting-for-2FA was not set => the
patron is fully authenticated.
The test returned 401 because we fully authenticated user cannot request
an otp token when not waiting for the second auth step.

This situation is already covered (last test of the subtest).

Test plan:
  prove t/db_dependent/api/v1/two_factor_auth.t
must return green

Sponsored-by: Rijksmuseum, Netherlands

Signed-off-by: Kyle M Hall <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to