aboutsummaryrefslogtreecommitdiff
path: root/verification.go
diff options
context:
space:
mode:
Diffstat (limited to 'verification.go')
-rw-r--r--verification.go4
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
}