Allows nameless users to Signout and update profile (#1181)

This commit is contained in:
Omar López authored and GitHub committed 2021-11-15 18:08:04 -07:00
1 parent 7de35dc4e5
commit 11e7779a58
2 files changed
+25 -19

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ async function getUserFromSession({
return null;
}
const { email, username } = user;
if (!username || !email) {
if (!email) {
return null;
}
const avatar = user.avatar || defaultAvatarSrc({ email });