github.com/masterhung0112/hk_server/v5@v5.0.0-20220302090640-ec71aef15e1c/einterfaces/mfa.go (about) 1 // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. 2 // See LICENSE.txt for license information. 3 4 package einterfaces 5 6 import ( 7 "github.com/masterhung0112/hk_server/v5/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 }