Hi! :)
Is there a easy way to have the "My settings" modal open when users logs in for the first time? We use OpenId Connect and we dont get a name or email from the Id-provider so we need the user to add it by them selfs.
Thanks for all help!
7 Answer(s)
-
1
Hi. If you are using angular version then you can create a component in app module. Get the userId from
abp.session.userId
and check it for required property and triggermySettingsModal.show()
-
0
Thank you for responding!
But I dont quite find the place where to put this in the "login"-flow. Any ideas? :)
-
0
I'm a ZERO customer, not a member of Support Team. So, take care :)) If I want do this in my app, I put this to account module as new component
update-mySettings.component
with own router path. Like redirecting to resetPassword when a user should Reset Password after first login. I recommended you to leave mySettings modal and create it as new form. You can extendprocessAuthenticateResult
inlogin.service.ts
and host. -
0
Thanks alot for that, I will look into it :)
-
0
Any idea how to call "show()" in "MySettingsModalComponent" from another component? Or use "HeaderComponent" to show the "MySettingsModalComponent" ?
-
1
Hi @larsfk
It seems like you want to force users to fill their profile info if the profile information is missing. In order to open my settings modal, you can check those information in app-session.service.ts using the then handler of _sessionService.getCurrentLoginInformations() and redirect user to a new route to fill profile information.
-
1
Thanks a lot for the help!
I added a new attribute to ExternalAuthenticateResultModel to see if its a new user or not. And if its a new user I will redirect (in login-service.ts) the user to a new modal component with the info that I want to user to produce :)