Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backend/routes/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ def sign_up():

password = data["password"]
password_hash = hashlib.md5(password.encode())

# Create an empty default profile
default_profile = Profile(
profileName="default",
profileName=f"{data['fullName']}'s Default",
skills=[],
job_levels=[],
locations=[],
Expand Down
21 changes: 15 additions & 6 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,22 @@ export default class App extends React.Component {
defaultProfile: res.data[CONSTANTS.PROFILE.DEFAULT_PROFILE],
});
})
.then(() => {
return axios.get("http://localhost:5000/getProfile", {
headers: {
userid: userId,
Authorization: `Bearer ${localStorage.getItem("token")}`,
},
});
})
.then((res) => {
this.setState({
userProfile: res.data,
currentPage: CONSTANTS.PAGES.PROFILE.NAME,
sidebar: true,
});
})
.catch((err) => console.log(err.message));

this.setState({
currentPage: CONSTANTS.PAGES.PROFILE.NAME,
sidebar: true,
userProfile: user,
});
};

// ✅ Show Logout Modal
Expand Down