Fix 404 & clean code
This commit is contained in:
parent
1dc135f8f9
commit
1d390cf7ff
9 changed files with 192 additions and 184 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue