summaryrefslogtreecommitdiffstats
path: root/services/auth/source/smtp/source_authenticate.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/auth/source/smtp/source_authenticate.go')
-rw-r--r--services/auth/source/smtp/source_authenticate.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/auth/source/smtp/source_authenticate.go b/services/auth/source/smtp/source_authenticate.go
index f50baa56a2..f51c884c3a 100644
--- a/services/auth/source/smtp/source_authenticate.go
+++ b/services/auth/source/smtp/source_authenticate.go
@@ -85,3 +85,8 @@ func (source *Source) Authenticate(user *models.User, userName, password string)
return user, nil
}
+
+// IsSkipLocalTwoFA returns if this source should skip local 2fa for password authentication
+func (source *Source) IsSkipLocalTwoFA() bool {
+ return source.SkipLocalTwoFA
+}