feat: added users db, login, register, logout

This commit is contained in:
2023-09-19 13:39:59 +01:00
parent b22d64a568
commit f2bf34b931
15 changed files with 586 additions and 50 deletions

7
utils.go Normal file
View File

@@ -0,0 +1,7 @@
package main
import "net/url"
func checkEmpty(f url.Values, path string) bool {
return !f.Has(path) || f.Get(path) == ""
}