Allow joining team from an invite before setting up MFA (#5022)

This commit is contained in:
Joram Wilander
2017-01-09 14:22:46 -05:00
committed by Harrison Healey
parent de822a3f3c
commit 78cadf7d60

View File

@@ -48,7 +48,7 @@ func InitTeam() {
// These should be moved to the global admin console
BaseRoutes.NeedTeam.Handle("/import_team", ApiUserRequired(importTeam)).Methods("POST")
BaseRoutes.Teams.Handle("/add_user_to_team_from_invite", ApiUserRequired(addUserToTeamFromInvite)).Methods("POST")
BaseRoutes.Teams.Handle("/add_user_to_team_from_invite", ApiUserRequiredMfa(addUserToTeamFromInvite)).Methods("POST")
}
func createTeam(c *Context, w http.ResponseWriter, r *http.Request) {