Fix totp registration (#6962)
commitf8c377c2d995626648ce736b1f4424f47c569520
authorDrBassman <ryan@ryanlosh.com>
Wed, 1 Nov 2023 20:25:48 +0000 (1 15:25 -0500)
committerGitHub <noreply@github.com>
Wed, 1 Nov 2023 20:25:48 +0000 (1 16:25 -0400)
tree047ba191fb31a525de793ce76c136b8a55f2698a
parenta70374a59727d4225ef3957fee13efd411d4135b
Fix totp registration (#6962)

* Update mfa_totp.php

On the original version, if you typed your password and pressed <ENTER>, a blank screen would be displayed.  This is because the <Form onsubmit=""> tag had one action, and the submit <Button> had a different onclick="" action.  This change makes it so pressing <ENTER> or clicking the Submit <Button> execute the same code...

* Update mfa_totp.php

Put type="submit" in \<button\>

* Fix TOTP Registration page

* Fix use statements order

---------

Co-authored-by: Beavis <ryan@docker.rtl.lan>
library/classes/Totp.class.php