verbb / default-dashboard

A Craft CMS plugin to set default dashboard widgets for users.
MIT License
12 stars 1 forks source link

Default Dashboard is not working the first time if 'autoLoginAfterAccountActivation' is set to true. #6

Open outline4 opened 5 years ago

outline4 commented 5 years ago

Description

We let our customers log in directly to being able to edit their profile just after they created the user account. We have autoLoginAfterAccountActivation set to true. After they've completed the registration we assign their user group. So no harm can be done.

Problem is: we are using default dashboard to display instructions... But these instructions won't be visible until the user has logged out, and logged in again.

Is there something you could do to trigger default dashboard just after a registration?

Additional info

engram-design commented 4 years ago

Firstly, isn't the default user group setup in Craft for the User Groups - or is your setup a bit more complicated than that? We're just listening to the low-level Yii User login event, which I would've thought be triggered on the autoLoginAfterAccountActivation setting - sounds like its not though?

outline4 commented 4 years ago

Hi, no, the setup was pretty standard. Because our users couldn't see the message on the dashboard, we chose another route and went with concierge. That way they'll have to wait until they are unsuspended.

It would be nice though if default dashboard would display on autoLoginAfterActivation.

Could you reproduce the same behavior?