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

added Signup with email and password #403

Closed
wants to merge 2 commits into from
Closed

added Signup with email and password #403

wants to merge 2 commits into from

Conversation

YashKamboj
Copy link

Issue Number
#396
fixes #

Describe the changes you've made

Describe if there is any unusual behavior (Any Warning) of your code(Write NA if there isn't)

Additional context (OPTIONAL)

Test plan (OPTIONAL)

A good test plan should give instructions that someone else can easily follow.

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • All new and existing tests passed.
  • The title of my pull request is a short description of the requested changes.

Provide a Deployed link of route/page that needs to review
Preview: Deploy preview link here with the appropriate route

@Abhishek-kumar09
Copy link
Contributor

Edu_Client_-_Google_Chrome_2021-09-07_21-36-51_Trim.mp4

Copy link
Contributor

@Abhishek-kumar09 Abhishek-kumar09 left a comment

Choose a reason for hiding this comment

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

Awesome @YashKamboj ,
Few changes for future:

  • Add email validation on textField.
  • Add obscure password field
  • Add a progress bar that shows the login is under progress

@YashKamboj
Copy link
Author

Thank you .
Do i make the new features now??
@Abhishek-kumar09

@Abhishek-kumar09
Copy link
Contributor

@YashKamboj You can keep it in different PR or same, your choice 😄

Comment on lines +9 to +11
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
const [displayName, setDisplayName] = useState("");
Copy link
Contributor

Choose a reason for hiding this comment

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

combine these three in one Object like:

const [user, setUser] = useState({});

to change the particular key in setState,

setUser({...user, key: value})

Copy link
Author

Choose a reason for hiding this comment

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

Sorry! I am unable to combine ,when i combine then error shows of not defined , can you teach me how to do it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please take a look at how it done.

https://github.com/codeforcauseorg/codeforcause.org/blob/ff1261f05941b4e5618f9ff7890a76e4ac1f91aa/src/views/pages/CLView/ApplyNowModal.js#L47-L67

The formData is the combined that that contains all the information about the form. See how it is used in textFields

Comment on lines +37 to +39
cfaSignIn("google.com").subscribe((user) => {
setuserData(user.displayName, user.email, user.photoURL);
user.sendEmailVerification();
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's google signIn, this is mixing google signIn with email and password auth

Copy link
Author

Choose a reason for hiding this comment

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

Hey i am really sorry , i do not know the user comes empty , can you please help

Copy link
Author

Choose a reason for hiding this comment

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

i am really stuck

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hey, Yash let's join on CFC discord under the project hangout section at 6 pm tomorrow I will explain the complete code base if it's fine.

cc/ @Abhijay007 @yashvardhan05

Copy link
Collaborator

Choose a reason for hiding this comment

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

and we will discuss this issue also :)

Copy link
Author

Choose a reason for hiding this comment

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

Yes , ok thank you

@yashvardhan05
Copy link

yashvardhan05 commented Sep 14, 2021 via email

@YashKamboj
Copy link
Author

@Abhijay007 any progress

@Abhijay007
Copy link
Contributor

@Abhijay007 any progress

@YashKamboj sorry for the late reply buddy, I tried it but was not able to find any optimal solutions, I suggest you ask @adarsh-technocrat about this issue as he already implemented something like this, you can message him on discord, maybe he can help you with this !!

@YashKamboj
Copy link
Author

@Abhijay007 any progress

@YashKamboj sorry for the late reply buddy, I tried it but was not able to find any optimal solutions, I suggest you ask @adarsh-technocrat about this issue as he already implemented something like this, you can message him on discord, maybe he can help you with this !!

Ok thnx for your time

@YashKamboj YashKamboj closed this Feb 16, 2022
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.

5 participants