Skip to content

Deduplicate U2F authentication views for users and admin mode

What does this MR do?

In preparation for further changes in this area (!26692 (merged), see also this note) this MR consolidates the duplicate U2F authentication HAML views used in app/views/admin/sessions/_two_factor_u2f.html.haml and app/views/u2f/_authenticate.html.haml by parameterizing and reusing the latter one.

Additionally, I renamed the HTML ids in the view to be less U2F (currently u2f -> 2fa-token, other suggestions welcome) specific to be able to reuse the partial later for WebAuthn.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Merge request reports