-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
There was a problem hiding this 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(""); |
There was a problem hiding this comment.
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) => { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
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. |
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: