@@ -64,7 +64,7 @@ export class AuthController {
6464 @Post ( '/web2/signup' )
6565 @HttpCode ( 200 )
6666 async signup ( @Body ( ) data : Web2SignUpDto ) : Promise < void > {
67- await this . authService . signup ( data ) ;
67+ await this . authService . signup ( data . email , data . password ) ;
6868 }
6969
7070 @ApiOperation ( {
@@ -85,7 +85,10 @@ export class AuthController {
8585 @Post ( '/web3/signup' )
8686 @HttpCode ( 200 )
8787 async web3SignUp ( @Body ( ) data : Web3SignUpDto ) : Promise < SuccessAuthDto > {
88- const authTokens = await this . authService . web3Signup ( data ) ;
88+ const authTokens = await this . authService . web3Signup (
89+ data . signature ,
90+ data . address ,
91+ ) ;
8992 return authTokens ;
9093 }
9194
@@ -104,7 +107,7 @@ export class AuthController {
104107 @Post ( '/web2/signin' )
105108 @HttpCode ( 200 )
106109 async signin ( @Body ( ) data : Web2SignInDto ) : Promise < SuccessAuthDto > {
107- const authTokens = await this . authService . signin ( data ) ;
110+ const authTokens = await this . authService . signin ( data . email , data . password ) ;
108111 return authTokens ;
109112 }
110113
@@ -122,7 +125,10 @@ export class AuthController {
122125 @Post ( '/web3/signin' )
123126 @HttpCode ( 200 )
124127 async web3SignIn ( @Body ( ) data : Web3SignInDto ) : Promise < SuccessAuthDto > {
125- const authTokens = await this . authService . web3Signin ( data ) ;
128+ const authTokens = await this . authService . web3Signin (
129+ data . address ,
130+ data . signature ,
131+ ) ;
126132 return authTokens ;
127133 }
128134
@@ -140,7 +146,7 @@ export class AuthController {
140146 @Post ( '/refresh' )
141147 @HttpCode ( 200 )
142148 async refreshToken ( @Body ( ) data : RefreshDto ) : Promise < SuccessAuthDto > {
143- const authTokens = await this . authService . refresh ( data ) ;
149+ const authTokens = await this . authService . refresh ( data . refreshToken ) ;
144150 return authTokens ;
145151 }
146152
@@ -158,7 +164,7 @@ export class AuthController {
158164 @Post ( '/web2/forgot-password' )
159165 @HttpCode ( 200 )
160166 async forgotPassword ( @Body ( ) data : ForgotPasswordDto ) : Promise < void > {
161- await this . authService . forgotPassword ( data ) ;
167+ await this . authService . forgotPassword ( data . email ) ;
162168 }
163169
164170 @ApiOperation ( {
@@ -175,7 +181,7 @@ export class AuthController {
175181 @Post ( '/web2/restore-password' )
176182 @HttpCode ( 200 )
177183 async restorePassword ( @Body ( ) data : RestorePasswordDto ) : Promise < void > {
178- await this . authService . restorePassword ( data ) ;
184+ await this . authService . restorePassword ( data . password , data . token ) ;
179185 }
180186
181187 @ApiOperation ( {
@@ -191,7 +197,7 @@ export class AuthController {
191197 @Post ( '/web2/verify-email' )
192198 @HttpCode ( 200 )
193199 async emailVerification ( @Body ( ) data : VerifyEmailDto ) : Promise < void > {
194- await this . authService . emailVerification ( data ) ;
200+ await this . authService . emailVerification ( data . token ) ;
195201 }
196202
197203 @ApiOperation ( {
@@ -211,7 +217,7 @@ export class AuthController {
211217 @Req ( ) request : RequestWithUser ,
212218 @Body ( ) data : ResendVerificationEmailDto ,
213219 ) : Promise < void > {
214- await this . authService . resendEmailVerification ( request . user , data ) ;
220+ await this . authService . resendEmailVerification ( request . user , data . email ) ;
215221 }
216222
217223 @ApiOperation ( {
0 commit comments