Skip to content

Commit

Permalink
Rebuild test-project fixture (#7123)
Browse files Browse the repository at this point in the history
* Rebuild test-project fixture

* Manually tweak SignupPage
  • Loading branch information
Tobbe committed Dec 13, 2022
1 parent bdea480 commit ef3600d
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion __fixtures__/test-project/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"dependencies": {
"@redwoodjs/api": "3.2.0",
"@redwoodjs/auth-dbauth-api": "4.0.0-canary.350+8de7b4460",
"@redwoodjs/auth-dbauth-api": "4.0.0-canary.358+bdea4808f",
"@redwoodjs/graphql-server": "3.2.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const standard = defineScenario<Prisma.PostCreateArgs>({
body: 'String',
author: {
create: {
email: 'String7974442',
email: 'String2269056',
hashedPassword: 'String',
fullName: 'String',
salt: 'String',
Expand All @@ -24,7 +24,7 @@ export const standard = defineScenario<Prisma.PostCreateArgs>({
body: 'String',
author: {
create: {
email: 'String3864724',
email: 'String1293889',
hashedPassword: 'String',
fullName: 'String',
salt: 'String',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ export const standard = defineScenario<Prisma.UserCreateArgs>({
user: {
one: {
data: {
email: 'String4212807',
email: 'String8692738',
hashedPassword: 'String',
fullName: 'String',
salt: 'String',
},
},
two: {
data: {
email: 'String1888025',
email: 'String810758',
hashedPassword: 'String',
fullName: 'String',
salt: 'String',
Expand Down
2 changes: 1 addition & 1 deletion __fixtures__/test-project/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
]
},
"dependencies": {
"@redwoodjs/auth-dbauth-web": "4.0.0-canary.350+8de7b4460",
"@redwoodjs/auth-dbauth-web": "4.0.0-canary.358+bdea4808f",
"@redwoodjs/forms": "3.2.0",
"@redwoodjs/router": "3.2.0",
"@redwoodjs/web": "3.2.0",
Expand Down
6 changes: 4 additions & 2 deletions __fixtures__/test-project/web/src/auth.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { createDbAuth } from '@redwoodjs/auth-dbauth-web'
import { createDbAuthClient, createDbAuth } from '@redwoodjs/auth-dbauth-web'

export const { AuthProvider, useAuth } = createDbAuth()
const dbAuthClient = createDbAuthClient()

export const { AuthProvider, useAuth } = createDbAuth(dbAuthClient)
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ const LoginPage = () => {
}, [])

const onSubmit = async (data: Record<string, string>) => {
const response = await logIn({ ...data })
const response = await logIn({
username: data.username,
password: data.password,
})

if (response.message) {
toast(response.message)
Expand Down

0 comments on commit ef3600d

Please sign in to comment.