diff options
author | FChannel <=> | 2021-01-14 19:01:10 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-14 19:01:10 -0800 |
commit | 1d648211f072bba6e5c04a6944eb720e0355b0b3 (patch) | |
tree | bb3aff9d21bdec3c28e5478880829e7e1e4eced6 /verification.go | |
parent | f07df9e7182f4487bd38d6be71074872815d947b (diff) |
added config file for server defaults
Diffstat (limited to 'verification.go')
-rw-r--r-- | verification.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/verification.go b/verification.go index f233fe6..c8d46be 100644 --- a/verification.go +++ b/verification.go @@ -301,10 +301,10 @@ func IsEmailSetup() bool { } func HasAuth(db *sql.DB, code string, board string) bool { - + verify := GetVerificationByCode(db, code) - if HasBoardAccess(db, verify) { + if verify.Board == Domain || (HasBoardAccess(db, verify) && verify.Board == board) { return true } |