diff options
Diffstat (limited to 'services/auth/interface.go')
-rw-r--r-- | services/auth/interface.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/auth/interface.go b/services/auth/interface.go index 51c7043370..a198fbe5b8 100644 --- a/services/auth/interface.go +++ b/services/auth/interface.go @@ -54,6 +54,11 @@ type PasswordAuthenticator interface { Authenticate(user *models.User, login, password string) (*models.User, error) } +// LocalTwoFASkipper represents a source of authentication that can skip local 2fa +type LocalTwoFASkipper interface { + IsSkipLocalTwoFA() bool +} + // SynchronizableSource represents a source that can synchronize users type SynchronizableSource interface { Sync(ctx context.Context, updateExisting bool) error |