Add option to use FM w/o login

Former-commit-id: fd6209370028490ac4766e61ebd87350e12efd22 [formerly 88b307e153445f3a22a38b5113f8a184d87dc75c] [formerly 7c5d74411dee7036012e734555763df009190de6 [formerly f572fc7837]]
Former-commit-id: 791eab82673bdd5b41947b20f444066bb9070406 [formerly 582a15ff9879494afac6893a675bab094973d5a4]
Former-commit-id: a936d8b2e15203541a2b0ff074b4146867352426
This commit is contained in:
Henrique Dias
2017-08-02 14:10:05 +01:00
parent 2460fd4fae
commit aa219e701e
6 changed files with 33 additions and 4 deletions

View File

@@ -103,6 +103,10 @@ type FileManager struct {
// edited directly. Use SetBaseURL.
BaseURL string
// NoAuth disables the authentication. When the authentication is disabled,
// there will only exist one user, called "admin".
NoAuth bool
// The Default User needed to build the New User page.
DefaultUser *User