You can configure your store to redirect customers to their account dashboard after they log in or let them continue shopping.
Set the login landing page
On the Admin sidebar, go to Stores > Settings > Configuration.
In the left panel, expand Customers and choose Customer Configuration.
Expand the Login Options section.
Set Redirect Customer to Account Dashboard after Logging in to one of the following:
Yes The account dashboard appears when customers log in to their accounts. No Customers can continue shopping after logging in to their accounts.
When complete, click Save Config.