@@ -69,7 +69,7 @@ export class AuthenticationService {
69
69
const users = this . moduleRef . get ( userMod . UserService , { strict : false } ) ;
70
70
userId = await this . gel . usingOptions (
71
71
disableAccessPolicies ,
72
- async ( ) => await users . create ( input , session ) ,
72
+ async ( ) => await users . create ( input ) ,
73
73
) ;
74
74
} catch ( e ) {
75
75
// remap field prop as `email` field is at a different location in register() than createPerson()
@@ -85,7 +85,7 @@ export class AuthenticationService {
85
85
return userId ;
86
86
}
87
87
88
- async login ( input : LoginInput , session : Session ) : Promise < ID > {
88
+ async login ( input : LoginInput ) : Promise < ID > {
89
89
const hash = await this . repo . getPasswordHash ( input ) ;
90
90
91
91
if ( ! ( await this . crypto . verify ( hash , input . password ) ) ) {
@@ -259,7 +259,6 @@ export class AuthenticationService {
259
259
async changePassword (
260
260
oldPassword : string ,
261
261
newPassword : string ,
262
- session : Session ,
263
262
) : Promise < void > {
264
263
if ( ! oldPassword )
265
264
throw new InputException ( 'Old Password Required' , 'oldPassword' ) ;
@@ -291,10 +290,7 @@ export class AuthenticationService {
291
290
} ) ;
292
291
}
293
292
294
- async resetPassword (
295
- { token, password } : ResetPasswordInput ,
296
- session : Session ,
297
- ) : Promise < void > {
293
+ async resetPassword ( { token, password } : ResetPasswordInput ) : Promise < void > {
298
294
const emailToken = await this . repo . findEmailToken ( token ) ;
299
295
if ( ! emailToken ) {
300
296
throw new InputException ( 'Token is invalid' , 'TokenInvalid' ) ;
0 commit comments