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

Generate default user.

This commit is contained in:
Ferdinand Mütsch
2019-05-21 23:09:47 +02:00
parent f9a2efaffb
commit 080e91973c
3 changed files with 39 additions and 7 deletions

View File

@ -1,5 +1,10 @@
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"`