security/2fa: Unbreak build with Go 1.12
PR: 236031 Submitted by: Dmitri Goutnik <dg@syrec.org> (maintainer)