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.
This commit is contained in:
haixunlu
2018-09-13 10:49:07 -07:00
committed by 无闻
parent 798798f7ab
commit 68a6579852
8 changed files with 103 additions and 20 deletions

View File

@@ -32,6 +32,7 @@ type Authentication struct {
GroupMemberUID string
UserUID string
IsActive bool
IsDefault bool
SMTPAuth string
SMTPHost string
SMTPPort int