From 78cadf7d6005fe38bf63fa7c145370b1d44eb9ec Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Mon, 9 Jan 2017 14:22:46 -0500 Subject: Allow joining team from an invite before setting up MFA (#5022) --- api/team.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api') diff --git a/api/team.go b/api/team.go index dc1790116..c855a515d 100644 --- a/api/team.go +++ b/api/team.go @@ -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) { -- cgit v1.2.3-1-g7c22