Make login dialog automatically show only once per domain visit
Simplify to use bool instead of storing domain name
Rename method
Merge pull request #3331 from ctrlaltdavid/19961

Code Review for Job #19961
resolve conflicts on merge with upstream master