some updates

This commit is contained in:
ston1th 2021-12-04 18:02:27 +01:00
commit f5c47ea28a
43 changed files with 80 additions and 356 deletions

View file

@ -66,10 +66,7 @@ func (db *DB) CreateUser(username, password string) error {
func (db *DB) BasicAuth(username, password string) bool {
_, err := db.Login(username, password)
if err == nil {
return true
}
return false
return err == nil
}
func (db *DB) Login(username, password string) (u core.User, err error) {