The package pwauth-go provides user authentication for username/password credentials. This is done in a platform dependent manner, so the exact details of the verification depend on the operating system.
Please send pull requests for any of your modifications. Implementation, testing, or both may be limited for platforms other than Linux. If there is demand, the implementation for other systems can be completed.