Login disable (#35)

Add ability to disable authentication
This commit is contained in:
Khanh Ngo 2020-10-09 23:33:29 +02:00 committed by GitHub
parent c205a04443
commit 9dca2b7361
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 84 additions and 41 deletions

View file

@ -9,7 +9,7 @@ type Client struct {
ID string `json:"id"`
PrivateKey string `json:"private_key"`
PublicKey string `json:"public_key"`
PresharedKey string `json:"preshared_key"`
PresharedKey string `json:"preshared_key"`
Name string `json:"name"`
Email string `json:"email"`
AllocatedIPs []string `json:"allocated_ips"`

View file

@ -8,5 +8,6 @@ type Interface struct {
// BaseData struct to pass value to the base template
type BaseData struct {
Active string
Active string
CurrentUser string
}