Do you mean multiple times in the same day? The initial table is at the grain of user and day:
This line:
Is to facilitate the date spine - by doing an inequality join you can get a row for every day even if they didn’t log in. See Finding active days for a subscription/user/account (date spining) for a more in depth discussion