X-Git-Url: http://these/git/?a=blobdiff_plain;f=src%2Fshared%2Fcomponents%2Fperson%2Fpassword-change.tsx;h=565f55e6ce2853d0be7c6e53bf294d2a163a0632;hb=c3ab9e74f8775f4b811866d2675b00f9702bde3d;hp=dd85e05b3a1961e9f91975ac74185f8db8489291;hpb=7cbdfce24ca37a3270b06bbda05efc1b66af7921;p=lemmy-ui.git diff --git a/src/shared/components/person/password-change.tsx b/src/shared/components/person/password-change.tsx index dd85e05..565f55e 100644 --- a/src/shared/components/person/password-change.tsx +++ b/src/shared/components/person/password-change.tsx @@ -47,7 +47,9 @@ export class PasswordChange extends Component { />
-
{I18NextService.i18n.t("password_change")}
+

+ {I18NextService.i18n.t("password_change")} +

{this.passwordChangeForm()}
@@ -133,7 +135,9 @@ export class PasswordChange extends Component { if (i.state.passwordChangeRes.state === "success") { const data = i.state.passwordChangeRes.data; - UserService.Instance.login(data); + UserService.Instance.login({ + res: data, + }); const site = await HttpService.client.getSite({ auth: myAuth() }); if (site.state === "success") {