Skip to content

Commit

Permalink
Added logs in helper
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-dharti-r committed Apr 24, 2024
1 parent 4202f58 commit 217dd91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-backend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: DeployBackendDev
on:
push:
branches:
- "master"
- "fix-recaptcha-issue-in-jobs"

jobs:
deploy-backend-dev:
Expand Down
4 changes: 3 additions & 1 deletion utils/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ func GetAWSIAMUserSession() (*session.Session, error) {

func (repo *utilsRepository) VerifyRecaptcha(token string) (bool, error) {

log.Info(recaptchaBase64)

//create recaptcha assessment and verify token
ctx := context.Background()

credBytes, err := b64.StdEncoding.DecodeString(recaptchaBase64)
if err != nil {
log.Error(err)
log.Error("Error while decoding recaptcha: ", err)
return false, err
}

Expand Down

0 comments on commit 217dd91

Please sign in to comment.