Skip to content

Commit 047916f

Browse files
committed
fix: add haspassword field to login controller
1 parent 950b75e commit 047916f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

backend/src/controllers/auth.controller.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ const login = async (req, res) => {
244244
company: user.company,
245245
interests: user.interests,
246246
isOAuthUser: !!(user.google_id || user.orcid_id || user.github_id),
247+
hasPassword: !!user.hashed_password, // add
247248
created_at: user.created_at,
248249
updated_at: user.updated_at,
249250
},

0 commit comments

Comments
 (0)