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";
constructor(props: any, context: any) {
super(props, context);
-
- FirstLoadService.isFirstLoad;
}
get documentTitle(): string {
/>
<div className="row">
<div className="col-12 col-lg-6 offset-lg-3 mb-4">
- <h5>{I18NextService.i18n.t("password_change")}</h5>
+ <h1 className="h4 mb-4">
+ {I18NextService.i18n.t("password_change")}
+ </h1>
{this.passwordChangeForm()}
</div>
</div>
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") {