Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I have used Webform module for gathering user data before accessing the content.
Only authenticated users can access the webform, but in the webform submission reports there are some user names with name as anonymous who submitted the webform.
Admin menu --> webform --> Choose one of your webform and click component--> form setting
Under SUBMISSION ACCESS untick anonymous user.
it is already set to be access only by authenticated users.
in most of the cases username comes properly but in some of the cases the username comes as anonymous( not verified )
Required, but never shown