How did discourse know the first login of a user?


(SMHassanAlavi) #1

When a new user logged in for first time, Discourse show a small info about the notification to user. Where does discourse know this is user’s first login to show that information to new user?


(Vinoth Kannan) #2

Actually it displaying when a user didn’t read his first notification. As per the code below

CurrentUserSerializer class is exporting previous_visit_at column of the logged in user. It may be useful to find it.