Add gate logic
Merge branch 'master' of https://github.com/krackistan/passport