mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
refactor(suites): validate totp inputs (#3218)
This change validates the inputs for the TOTP code entry. This was previously discarded and left unvalidated during the move to rod from within the integration tests.
This commit is contained in:
parent
92e219b34b
commit
daaa16c182
|
@ -31,7 +31,7 @@ func (rs *RodSession) doEnterOTP(t *testing.T, page *rod.Page, code string) {
|
|||
inputs := rs.WaitElementsLocatedByID(t, page, "otp-input input")
|
||||
|
||||
for i := 0; i < len(code); i++ {
|
||||
_ = inputs[i].Input(string(code[i]))
|
||||
_ = inputs[i].MustPress(rune(code[i]))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user