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
Provide the ability to add custom processing to the User Controller actions. This will make the user controller actions extensible with additional custom processing.
For example, the User Controller Index action currently only returns a View Model with no params. The user model in the client application could be more extensive with data outside of LmcUser. The index action could allow further processing like gathering more parameters for the view template to consume, attach child views to the main view, etc.
The proposed approach is to compose an event within the constroller action and have listeners to the event to perform more processing. If the result of the events is a response, then return the response, otherwise return the view model.
For each User Controller actions, there would be the following events:
Index action: 'index' event
Login action: 'login' and 'login.post' events
Register action: 'register' and 'register.post' events
Logout action: 'logout' and 'logout.post' events
Changepassword: 'changepassword' and 'changepassword.post' events
Changeemail: 'changeemail' and changeemail.post' events
Edit (once implemented): 'edit' and 'edit.post' events
This could be used to facilitate MFA login actions where a listener would listen to a 'login.post' and perform further processing if MFA is enabled.
The text was updated successfully, but these errors were encountered:
Provide the ability to add custom processing to the User Controller actions. This will make the user controller actions extensible with additional custom processing.
For example, the User Controller Index action currently only returns a View Model with no params. The user model in the client application could be more extensive with data outside of LmcUser. The index action could allow further processing like gathering more parameters for the view template to consume, attach child views to the main view, etc.
The proposed approach is to compose an event within the constroller action and have listeners to the event to perform more processing. If the result of the events is a response, then return the response, otherwise return the view model.
For each User Controller actions, there would be the following events:
This could be used to facilitate MFA login actions where a listener would listen to a 'login.post' and perform further processing if MFA is enabled.
The text was updated successfully, but these errors were encountered: