Make authenticate method less complex
Add comments
Fix https://github.com/jbox-web/redmine_git_hosting/issues/14