@@ -84,7 +84,7 @@ export async function login(userId: string, password: string): Promise<LoginResu
84
84
}
85
85
86
86
type RegisterResponse = { error ?: { turnstile : boolean , accountExists : boolean , invalidInput : boolean } , user ?: LexAuthUser } ;
87
- export async function createUser ( endpoint : string , password : string , passwordStrength : number , name : string , email : string , locale : string , turnstileToken : string , autoLogin : boolean ) : Promise < RegisterResponse > {
87
+ export async function createUser ( endpoint : string , password : string , passwordStrength : number , name : string , email : string , locale : string , turnstileToken : string ) : Promise < RegisterResponse > {
88
88
const response = await fetch ( endpoint , {
89
89
method : 'post' ,
90
90
headers : {
@@ -96,7 +96,6 @@ export async function createUser(endpoint: string, password: string, passwordStr
96
96
locale,
97
97
turnstileToken,
98
98
passwordStrength,
99
- autoLogin,
100
99
passwordHash : await hash ( password ) ,
101
100
} )
102
101
} ) ;
@@ -111,13 +110,13 @@ export async function createUser(endpoint: string, password: string, passwordStr
111
110
const userJson : LexAuthUser = jwtToUser ( responseJson ) ;
112
111
return { user : userJson } ;
113
112
}
114
- export function register ( password : string , passwordStrength : number , name : string , email : string , locale : string , turnstileToken : string , autoLogin : boolean ) : Promise < RegisterResponse > {
115
- return createUser ( '/api/User/registerAccount' , password , passwordStrength , name , email , locale , turnstileToken , autoLogin ) ;
113
+ export function register ( password : string , passwordStrength : number , name : string , email : string , locale : string , turnstileToken : string ) : Promise < RegisterResponse > {
114
+ return createUser ( '/api/User/registerAccount' , password , passwordStrength , name , email , locale , turnstileToken ) ;
116
115
}
117
- export function acceptInvitation ( password : string , passwordStrength : number , name : string , email : string , locale : string , turnstileToken : string , autoLogin : boolean ) : Promise < RegisterResponse > {
118
- return createUser ( '/api/User/acceptInvitation' , password , passwordStrength , name , email , locale , turnstileToken , autoLogin ) ;
116
+ export function acceptInvitation ( password : string , passwordStrength : number , name : string , email : string , locale : string , turnstileToken : string ) : Promise < RegisterResponse > {
117
+ return createUser ( '/api/User/acceptInvitation' , password , passwordStrength , name , email , locale , turnstileToken ) ;
119
118
}
120
- export async function createGuestUserByAdmin ( password : string , passwordStrength : number , name : string , email : string , locale : string , _turnstileToken : string , _autoLogin : boolean ) : Promise < RegisterResponse > {
119
+ export async function createGuestUserByAdmin ( password : string , passwordStrength : number , name : string , email : string , locale : string , _turnstileToken : string ) : Promise < RegisterResponse > {
121
120
const passwordHash = await hash ( password ) ;
122
121
const gqlInput : CreateGuestUserByAdminInput = {
123
122
passwordHash,
0 commit comments