Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Gogo Dev 30 posts 187 karma points
    Oct 27, 2021 @ 14:13
    Gogo Dev

    How to add a custom field to backoffice User / add two-factor authentication?

    So I want to create a new field for the backoffice users. The field should just be a like an Umbraco.TrueFalse datatype. I want to create this field so that a user can choose whether to activate a two-factor authentication for login. I know that there are packages out there that implement a two-factor authentication into Umbraco, but they're either for older versions or the authentication-type is via SMS, and I need it to be via email. And yes I know that I shouldn't change the user view, and that the simplest way would be to add a custom section. But is there another way though?

    Any help would be highly appreciated, and a big thanks in advance!

    Yours Gogo

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Nov 06, 2023 @ 15:56
    Alex Skrypnyk

    Hi Gogo,

    There is no way to extend a User to add more properties I"'m aware of. You could create a new table in the Umbraco database and then use C# class to get the extended properties in the code

    Thanks, Alex

Please Sign in or register to post replies

Write your reply to: