Skip to content

Commit ea74e05

Browse files
committed
Make sign in and sign up pages and allow for email/pwd registration
1 parent 523bbd1 commit ea74e05

File tree

10 files changed

+501
-493
lines changed

10 files changed

+501
-493
lines changed

backend/api/src/create-user.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@ export const createUser: APIHandler<'create-user'> = async (
2626

2727
const testUserAKAEmailPasswordUser =
2828
firebaseUser.providerData[0].providerId === 'password'
29-
if (
30-
testUserAKAEmailPasswordUser &&
31-
adminToken !== process.env.TEST_CREATE_USER_KEY
32-
) {
33-
throw new APIError(
34-
401,
35-
'Must use correct TEST_CREATE_USER_KEY to create user with email/password'
36-
)
37-
}
29+
30+
// if (
31+
// testUserAKAEmailPasswordUser &&
32+
// adminToken !== process.env.TEST_CREATE_USER_KEY
33+
// ) {
34+
// throw new APIError(
35+
// 401,
36+
// 'Must use correct TEST_CREATE_USER_KEY to create user with email/password'
37+
// )
38+
// }
3839

3940
const host = req.get('referer')
4041
log(`Create user from: ${host}`)

old/app/login/page.tsx

Lines changed: 0 additions & 152 deletions
This file was deleted.

0 commit comments

Comments
 (0)