Skip to content

Commit 49bd4af

Browse files
committed
FIX: temp fix on authcredentialsservice for firstname lastname
1 parent 4f7170c commit 49bd4af

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

services/auth/AuthCredentialService.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,16 +133,18 @@ export class AuthCredentialService extends AuthService {
133133
* @returns
134134
*/
135135
override async registerUser(
136-
name: string,
136+
firstname: string,
137+
lastname: string,
137138
password: string,
138139
login: string
139140
): Promise<AuthUserCredential | null> {
140141
let request = null
141-
if (login && password && name) {
142+
if (login && password && firstname && lastname) {
142143
request = await this.ofetch(this.urlEndpointAuth + '/register', {
143144
method: 'POST',
144145
body: {
145-
name,
146+
firstname,
147+
lastname,
146148
login,
147149
password
148150
}

0 commit comments

Comments
 (0)