You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to make the registration process easy as possible, by removing unesseccary information.
I can add my own attributes like phone_number by creating a new class and inheriting from User, but the problem is:
>>> I dont need firstname, lastname and username... How can I change the User entity ?
I saw that these variables are used all over the codebase (for example in the login route, registration route, regsistrationUserModel, ...)
I thought of using a custom form and add_post(self, item) to overwrite the firstname, lastname, username, with the provided user email before persiting to the datasbase ... but is there a better (cleaner) way ?
The text was updated successfully, but these errors were encountered:
You could override the user_model variable in a custom security manager. However i doubt it is worth the effort, first and last name are optional i believe, so why not just let users enter it if they want to, but ignore in all your custom application code
I want to make the registration process easy as possible, by removing unesseccary information.
I can add my own attributes like phone_number by creating a new class and inheriting from User, but the problem is:
>>> I dont need firstname, lastname and username... How can I change the User entity ?
I saw that these variables are used all over the codebase (for example in the login route, registration route, regsistrationUserModel, ...)
I thought of using a custom form and add_post(self, item) to overwrite the firstname, lastname, username, with the provided user email before persiting to the datasbase ... but is there a better (cleaner) way ?
The text was updated successfully, but these errors were encountered: