X-Git-Url: http://these/git/?a=blobdiff_plain;f=src%2Fshared%2Fcomponents%2Fperson%2Fpassword-change.tsx;h=565f55e6ce2853d0be7c6e53bf294d2a163a0632;hb=c3ab9e74f8775f4b811866d2675b00f9702bde3d;hp=0403c553616d8dc91a6b78263720e85d7d3f13c8;hpb=9166491544dbc7f1c334a1babcfca91d66626824;p=lemmy-ui.git diff --git a/src/shared/components/person/password-change.tsx b/src/shared/components/person/password-change.tsx index 0403c55..565f55e 100644 --- a/src/shared/components/person/password-change.tsx +++ b/src/shared/components/person/password-change.tsx @@ -2,12 +2,7 @@ import { myAuth, setIsoData } from "@utils/app"; import { capitalizeFirstLetter } from "@utils/helpers"; import { Component, linkEvent } from "inferno"; import { GetSiteResponse, LoginResponse } from "lemmy-js-client"; -import { - FirstLoadService, - HttpService, - I18NextService, - UserService, -} from "../../services"; +import { HttpService, I18NextService, UserService } from "../../services"; import { RequestState } from "../../services/HttpService"; import { HtmlTags } from "../common/html-tags"; import { Spinner } from "../common/icon"; @@ -35,8 +30,6 @@ export class PasswordChange extends Component { constructor(props: any, context: any) { super(props, context); - - FirstLoadService.isFirstLoad; } get documentTitle(): string { @@ -54,7 +47,9 @@ export class PasswordChange extends Component { />
-
{I18NextService.i18n.t("password_change")}
+

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

{this.passwordChangeForm()}
@@ -140,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") {