mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 16:51:33 +10:00
add safety check for username in github strategy
This commit is contained in:
@ -31,7 +31,7 @@ export class GitHubStrategy extends PassportStrategy(Strategy, "github") {
|
|||||||
|
|
||||||
let user: User | null = null;
|
let user: User | null = null;
|
||||||
|
|
||||||
if (!email) throw new BadRequestException();
|
if (!email || !username) throw new BadRequestException();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const user =
|
const user =
|
||||||
|
|||||||
Reference in New Issue
Block a user