1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

feat: ability to set default username and password

This commit is contained in:
Ferdinand Mütsch
2020-04-26 14:00:53 +02:00
parent 91a4bb2db3
commit 2b47a7d73f
5 changed files with 40 additions and 37 deletions

View File

@@ -1,10 +1,5 @@
package models
const (
DefaultUser string = "admin"
DefaultPassword string = "admin"
)
type User struct {
ID string `json:"id" gorm:"primary_key"`
ApiKey string `json:"api_key" gorm:"unique"`