From a93639b9dc59b136127ebdaf7b3020a251a90a08 Mon Sep 17 00:00:00 2001 From: FlayInAHook Date: Thu, 3 Dec 2020 00:17:19 +0100 Subject: [PATCH] Implemented working pw changer --- src/app/models/user.ts | 12 ++----- src/app/pages/profile/profile.component.html | 11 +++---- src/app/pages/profile/profile.component.ts | 34 +++++++++++++++----- src/app/services/snackbar.service.ts | 2 +- 4 files changed, 35 insertions(+), 24 deletions(-) diff --git a/src/app/models/user.ts b/src/app/models/user.ts index 472eaac..5381ae1 100644 --- a/src/app/models/user.ts +++ b/src/app/models/user.ts @@ -1,21 +1,15 @@ export class AuthUser { request_token: string; refresh_token: string; - user: { - id: number; - name: string; - email: string; - attributes : { - profile_url: string; - } - } - + user: User; } export class User { id: number; name: string; email: string; + own_password: string; + password: string; attributes : { profile_url: string; } diff --git a/src/app/pages/profile/profile.component.html b/src/app/pages/profile/profile.component.html index 1199841..7720d6c 100644 --- a/src/app/pages/profile/profile.component.html +++ b/src/app/pages/profile/profile.component.html @@ -1,7 +1,7 @@

Profil aktualisieren

- + Aktuelles Passwort --> - - + Neues Passwort {{ hide ? "visibility_off" : "visibility" }} - + Passwort wiederholen -