Skip to content

Commit

Permalink
polished readme a little more
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjmiller5 committed Dec 18, 2024
1 parent 1ed523f commit 0de9336
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ Also make sure to have a .env file with secrets from the Project Description Goo

## **Signing in using different views**

After signing in for the first time, you will have an account created (gmails will be considered third praty users and bu emails will be considered student volunteers). Currently, the only way to change the type of user your are is to directly modify the database. Here are some sql queries you can use to do so and test our the differet views (the middleware will automatically redirect you to the correct view based on your role):
1. Sign in with your bu.edu email using OAuth
2. After signing in for the first time, you will have an account created (gmails will be considered third praty users and bu emails will be considered student volunteers). Currently, the only way to change the type of user your are is to directly modify the database. Here are some sql queries you can use to do so and test our the differet views (the middleware will automatically redirect you to the correct view based on your role):

1. **Admin**: Sign in with your bu.edu email using OAuth

3. **Admin**:

Run the following SQL query on the database to make your account an admin:

Expand All @@ -78,15 +80,15 @@ SET role = 'ADMIN'
WHERE email = 'your-email-address'
```

2. **Student Volunteer**: Sign in with your bu.edu email using OAuth
4. **Student Volunteer**:

```sql
UPDATE "Person"
SET role = 'USER'
WHERE email = 'your-email-address'
```

3. **Third-party**: Sign in with your Google email using OAuth
1. **Third-party**:

```sql
UPDATE "Person"
Expand Down

0 comments on commit 0de9336

Please sign in to comment.