diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2025-03-15 18:34:58 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2025-03-15 18:34:58 -0400 |
commit | d97d4d430113088c4f52f53c040d8705c66b410e (patch) | |
tree | 7738f85333e1511d39b745c49b9ff70c4d8e3a27 /ufund-ui/src/app/services/users.service.ts | |
parent | 51f0322db803ed3baf1f24f18a6e7a83dab58a3b (diff) | |
download | JellySolutions-d97d4d430113088c4f52f53c040d8705c66b410e.tar.gz JellySolutions-d97d4d430113088c4f52f53c040d8705c66b410e.tar.bz2 JellySolutions-d97d4d430113088c4f52f53c040d8705c66b410e.zip |
Add support for account creation
Diffstat (limited to 'ufund-ui/src/app/services/users.service.ts')
-rw-r--r-- | ufund-ui/src/app/services/users.service.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ufund-ui/src/app/services/users.service.ts b/ufund-ui/src/app/services/users.service.ts index b3bbbd4..c570ccf 100644 --- a/ufund-ui/src/app/services/users.service.ts +++ b/ufund-ui/src/app/services/users.service.ts @@ -32,8 +32,8 @@ export class UsersService { private http: HttpClient ) {} - createUser(data: User): Observable<User> { - return this.http.post<User>(this.url, data, this.httpOptions) + async createUser(username:string, password:string) { + await firstValueFrom(this.http.post<User>(this.url, {username: username, password: password}, this.httpOptions)) } getUser(id: string): Observable<User> { |