added totp support

This commit is contained in:
ston1th 2018-10-27 16:05:17 +02:00
commit bac08dc7cf
16 changed files with 448 additions and 32 deletions

View file

@ -7,4 +7,7 @@ const (
WikiSection = "wiki"
IndexURI = WikiSection + "/" + IndexPage
LoginURI = "/login"
TotpURI = "/totp"
)

View file

@ -26,6 +26,7 @@ type User struct {
Username string
Password string
Created string
Secret string
Admin bool
Locked int
}