aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorhaixunlu <luhaixun@gmail.com>2018-09-13 10:49:07 -0700
committer无闻 <u@gogs.io>2018-09-13 13:49:07 -0400
commit68a65798520556ff7130d7e7e53bd260d890bb7c (patch)
treec8c5222c2882298fae0761609bf51b685901b771 /pkg
parent798798f7ab00ae3e43b40253cf7ea388662b539d (diff)
login_source: add default authentication switch (#5338)
* Add default Authentication Switch. * adjust the code accroding to reviews * #1. Remove redudant logic. #2, Fix a bug in "Edit" panel. * Remove unused logic * Fix local authentication files are not flushed. * refactor according to review.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/form/auth.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/form/auth.go b/pkg/form/auth.go
index b846fc19..b2ee3ae8 100644
--- a/pkg/form/auth.go
+++ b/pkg/form/auth.go
@@ -32,6 +32,7 @@ type Authentication struct {
GroupMemberUID string
UserUID string
IsActive bool
+ IsDefault bool
SMTPAuth string
SMTPHost string
SMTPPort int