Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • G Go-Toko
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Ahmad Hasan Ali
  • Go-Toko
  • Merge requests
  • !1

Merged
Created Mar 13, 2023 by Ahmad Hasan Ali@HasanMaintainer

1 SU-Login using google account API

  • Overview 0
  • Commits 2
  • Changes 24

Login using Google account API

Add this variable to the .env

GOOGLE_CLIENT_ID=342322140295-a87chkbaipbkomgln5be5d4k1itbdi83.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=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
GOOGLE_REDIRECT=http://127.0.0.1:8000/login/google/callback

new user will redirect to owner account, if u want to login as superadmin u can change value of role_id in users table at database to 1.

  • 1 is Admin
  • 2 is Owner
  • 3 is Cashier

Middleware

I was setting the middleware too at this branch, you can look at the RoleMiddleware, use command+p and type that thing.

I just setting if the user not login, they can't just write down the url and entering the app. They will return to login page.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 1SU-Adding_middleware