github.com/ashishbhate/mattermost-server@v5.11.1+incompatible/einterfaces/mfa.go (about)

     1  // Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
     2  // See License.txt for license information.
     3  
     4  package einterfaces
     5  
     6  import (
     7  	"github.com/mattermost/mattermost-server/model"
     8  )
     9  
    10  type MfaInterface interface {
    11  	GenerateSecret(user *model.User) (string, []byte, *model.AppError)
    12  	Activate(user *model.User, token string) *model.AppError
    13  	Deactivate(userId string) *model.AppError
    14  	ValidateToken(secret, token string) (bool, *model.AppError)
    15  }