Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#33 - Display GitHub input when the user is Graduate - Sabella #36

Merged
merged 3 commits into from
Jul 25, 2024

Conversation

Sabella-8
Copy link
Collaborator

Naming Rules

Name your PR like this: ISSUENUMBER-TITLE-YOURNAME

Description

Write a summary of your change. Explain why you have made it.

Related to

Make sure you include the issue number with a hash sign # so Github can link this PR to the right issue, like this:

Fixes CodeYourFuture#1

Checklist:

  • My code follows the style guidelines of this project
  • I have carefully reviewed my own code
  • I have commented my code
  • I have updated any documentation

@Sabella-8 Sabella-8 changed the title Display GitHub input when the user is Graduate Sabella | Display GitHub input when the user is Graduate Jul 24, 2024
Copy link
Collaborator

@taiwo2 taiwo2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly implement the first for the Readme and pinned project as discussed. in another pull request

@@ -8,6 +8,7 @@ const SignUp = () => {
const [userType, setUserType] = useState("graduate");
const [message, setMessage] = useState("");
const [isGraduate, setIsGraduate] = useState(true);
const [userGithub, setUserGithub] = useState("");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job done


router.post("/users", async (req, res) => {
const { username, passwordHash, userType } = req.body;
router.post("/users", async (req, res) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be signup by name not users

router.post("/users", async (req, res) => {
const { username, passwordHash, userType } = req.body;
router.post("/users", async (req, res) => {
const { username, passwordHash, userType, userGithub } = req.body;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly use bcrypt to hash the password from the backend, not the frontend

@Sabella-8
Copy link
Collaborator Author

Hello, @taiwo2, thank you for your comment. However, the comment you provided is related to the previous work, which I did not do. I only added the GitHub input when users choose "graduate" in the options.

@taiwo2 taiwo2 merged commit 364615a into main Jul 25, 2024
@fikretellek fikretellek changed the title Sabella | Display GitHub input when the user is Graduate #33 - Display GitHub input when the user is Graduate - Sabella Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Backend] Add GitHub Link Input for Graduate User Type in Sign Up Form
3 participants