Custom properties of the current user's profile #4905
-
Hi all, Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
The profile info is stored in the settings of the User. An example is the code of UserProfile in the Oqtane Client module (in the folder Oqtane.Client Modules/Admin/UserProfile). |
Beta Was this translation helpful? Give feedback.
-
@pnicosia80
in code declare
in your OnInitializedAsync() method you can poputlate the declared variables
You can extract the Profile values from the settings using this function
|
Beta Was this translation helpful? Give feedback.
-
@pnicosia80 @leigh-pointer there is a much simpler way to access the current user's profile settings: PageState.User.Settings() The information is already loaded and available - you don't need to call any services. |
Beta Was this translation helpful? Give feedback.
@pnicosia80
you will need to inject a couple of services
in code declare
in your OnInitializedAsync() method you can poputlate the declared variables
You can extract the Profile values from the settings using this function