Restrict 2nd entry with same user

to restrict another entry with same user in the same day in login page

Link to database, set field of last login, compare, add to flow function to allow or deny on this basis.