fix flash message for User class without username field
Merge pull request #96 from imbolc/master

fix flash message for User class without username field