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!
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
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
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
is working on a reply...