func init() { rev.InterceptFunc(addUser, rev.BEFORE, &Application{}) } In the interceptor section, I think addUser should be checkLogin