Allows nameless users to Signout and update profile (#1181)
This commit is contained in:
1 parent
7de35dc4e5
commit
11e7779a58
2 files changed
+25
-19
No files matched your search
@@ -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 });
|
||||
|
||||
Reference in new issue
Block a user