Get login of current user in SharePoint with SPServices
I guess SPServices is the best solution for SharePoint. We still have SharePoint 2010 and prepate to migrate to SharePoint 2016 through SharePoint 2013. But for current tasks which must be made immediately, we still use SharePoint 2010, but only without server code. Rather often we have to make custom views for other users.
In domain authentication SPServices return user login as "Domain\username". But usually you operate only with user account name.