Core: Add loginFirst param to OnLogin hook to allow doing things on first login only

whitespacefix

Fix warning about unused param
Merge pull request #12328 from Rochet2/onfirstlogin

Core: Add loginFirst param to OnLogin hook to allow doing things on firs...