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

I would like to do some enhancement for the login Facebook page and password string #174

Open
wants to merge 40 commits into
base: test
Choose a base branch
from

Conversation

jasonyong12345
Copy link

@jasonyong12345 jasonyong12345 commented Aug 9, 2022

  1. The customer signup page for the password column has some bug where users could not signup even though they have follow the statement. The statement can be fix by using the empty($password)' instead of using password ==
  2. I would like to add some code referring to the facebook page using the Facebook php SDK

Facebook callback page

'{app-id}', 'app_secret' => '{app-secret}', 'default_graph_version' => 'v2.2', ]); $helper = $fb->getRedirectLoginHelper(); try { $accessToken = $helper->getAccessToken(); } catch(Facebook\Exceptions\FacebookResponseException $e) { // When Graph returns an error echo 'Graph returned an error: ' . $e->getMessage(); exit; } catch(Facebook\Exceptions\FacebookSDKException $e) { // When validation fails or other local issues echo 'Facebook SDK returned an error: ' . $e->getMessage(); exit; } if (! isset($accessToken)) { if ($helper->getError()) { header('HTTP/1.0 401 Unauthorized'); echo "Error: " . $helper->getError() . "\n"; echo "Error Code: " . $helper->getErrorCode() . "\n"; echo "Error Reason: " . $helper->getErrorReason() . "\n"; echo "Error Description: " . $helper->getErrorDescription() . "\n"; } else { header('HTTP/1.0 400 Bad Request'); echo 'Bad request'; } exit; } // Logged in // The OAuth 2.0 client handler helps us manage access tokens $oAuth2Client = $fb->getOAuth2Client(); // Get the access token metadata from /debug_token $tokenMetadata = $oAuth2Client->debugToken($accessToken); // Get user’s Facebook ID $userId = $tokenMetadata->getField('user_id'); ?>

san-coding and others added 30 commits October 7, 2021 14:54
Change navbar font style to bold
… into main

Added server side form validation for sign up.
box-shadow added on signup card
Create a video demonstrating the functionalities of the web app
Video Demonstration of Functionalities
Added fevicon to all the pages
@github-actions
Copy link

github-actions bot commented Aug 9, 2022

Hey, welcome to this repository. We appreciate your efforts and contributions 🎉

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.