summaryrefslogtreecommitdiff
path: root/internal/oauth/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/oauth/util.go')
-rw-r--r--internal/oauth/util.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/oauth/util.go b/internal/oauth/util.go
index 2520fc784..540045f80 100644
--- a/internal/oauth/util.go
+++ b/internal/oauth/util.go
@@ -85,6 +85,9 @@ func Authed(c *gin.Context, requireToken bool, requireApp bool, requireUser bool
if a.User.Disabled || !a.User.Approved {
return nil, errors.New("user disabled or not approved")
}
+ if a.User.Email == "" {
+ return nil, errors.New("user has no confirmed email address")
+ }
}
if requireAccount {