Fix 404 & clean code

This commit is contained in:
William Bouzourène 2025-01-20 15:40:03 +01:00
parent 1dc135f8f9
commit 1d390cf7ff
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
9 changed files with 192 additions and 184 deletions

View file

@ -26,6 +26,10 @@ func FirstAccountCheck() (bool, error) {
return false, result.Error
}
if result.RowsAffected < 1 {
return false, nil
}
return true, nil
}
@ -72,6 +76,10 @@ func UserExistsAndIsActive(id uint) (bool, error) {
return false, result.Error
}
if result.RowsAffected < 1 {
return false, nil
}
return true, nil
}