Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Commit

Permalink
Fix disabling Accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio1988 authored Mar 31, 2023
1 parent f59b26a commit f9f62c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions db/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ type Account struct {
LastSuspended null.Int `db:"last_suspended"`
Banned bool `db:"banned"`
LastBanned null.Int `db:"last_banned"`
Disabled bool `db:"disabled"`
LastDisabled null.Int `db:"last_disabled"`
Invalid bool `db:"invalid"`
LastSelected null.Int `db:"last_selected"`
Expand Down Expand Up @@ -125,7 +124,7 @@ func MarkBanned(db DbDetails, username string) error {
}

func MarkDisabled(db DbDetails, username string) error {
_, err := db.FlygonDb.Exec("UPDATE account SET disabled=1, last_disabled=UNIX_TIMESTAMP() WHERE Username=?", username)
_, err := db.FlygonDb.Exec("UPDATE account SET last_disabled=UNIX_TIMESTAMP() WHERE Username=?", username)
return err
}

Expand Down

0 comments on commit f9f62c0

Please sign in to comment.