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

Incorporated axios + set up proxy #35

Merged
merged 3 commits into from
Dec 22, 2020
Merged

Conversation

uglyprincess
Copy link
Collaborator

@uglyprincess uglyprincess commented Dec 22, 2020

Pull Request

Proposed Changes

  • Rerouted data from signin + signup routes to backend
  • Used axios for post requests, as well as http-proxy-middleware, and querystring
  • Fixes Issue Add OAuth UI in Sign Up/Log In #27

Types of changes made

  • Fixed Bug
  • Added new Features
  • Edited Documentations
  • Enhanced the working of code
  • Additional Changes

Additional Info

Viability of Code

Describe the tests that you ran to verify the changes made. Mention the tests for easy reproducibility.
Tested the code on my local server.

Mention(if any) specific Test Configurations used:

  • Filmware version:
  • Hardware:
  • Toolchain:
  • SDK:

Screenshots or GIFs (if any)

Attach screenshots of the changes made for easy reference.

Original Updated
Attach_Original_Screenshot Attach_Updated_Screenshot

Checklist:

  • My code follows the Mentioned Guidelines for the project
  • I have self-reviewed the changes made
  • I have made the changes easy to understand by adding comments
  • [] My changes does not generate new warnings/errors
  • I have attached relevant screenshots to display the changes made
  • I have made the required changes to the documentations

@uglyprincess
Copy link
Collaborator Author

@stygian-96 @Tlazypanda kindly review the changes made :))

@stygian-96
Copy link
Member

@Tlazypanda please review.

Copy link
Contributor

@Tlazypanda Tlazypanda left a comment

Choose a reason for hiding this comment

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

@uglyprincess Good job! 🎉 💯 Have left some comments please address them and we are good to go!!

// This function will be called upon clicking the button and will send the login info to the back end.

function sendInfo(){
axios.post(`http://localhost:5000/login`, querystring.stringify({username: info.username, password: info.password}), {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we lose the localhost part here in this url?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will be resolved in latest commit!


const handleChange = (prop) => (event) => {
updateInfo({...info, [prop]: event.target.value});
console.log(info);
Copy link
Contributor

Choose a reason for hiding this comment

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

Log statements too if testing is done

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure ma'am, I'll comment them out.

className={classes.inputText}
label="Password"
value={info.password}
onChange={handleChange('password')}
Copy link
Contributor

Choose a reason for hiding this comment

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

Are validations added for password and cpassword

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Validations for password will be added in the next commit.

@@ -0,0 +1,3 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Some files here are not required remove them from commit

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, will do!

@uglyprincess
Copy link
Collaborator Author

@Tlazypanda all the changes requested have been made. Please review! :))

Copy link
Contributor

@Tlazypanda Tlazypanda left a comment

Choose a reason for hiding this comment

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

@uglyprincess still some files can be removed from commit like log ...once done merge this rest all looks good 👍

@uglyprincess
Copy link
Collaborator Author

Done ma'am! I believe those were the last of the useless files.

@uglyprincess uglyprincess merged commit 677d48a into Elevate-Lab:main Dec 22, 2020
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.

3 participants