PRS-2 coding style
Fixes #381
Merge pull request #382 from mlocati/fix-user-recordlogin

Fix user recordlogin