Skip to content

Commit e749bf5

Browse files
committed
Automatically try logging in at support us page if we have a key
1 parent 111bb75 commit e749bf5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

angular/src/app/supportus/supportus.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { DialogModule } from "primeng/dialog";
1616
import { InputNumberModule } from "primeng/inputnumber";
1717
import { InputGroupModule } from "primeng/inputgroup";
1818
import { InputGroupAddonModule } from "primeng/inputgroupaddon";
19+
import { BasicInfo } from "../observer/observer.component";
1920

2021
@Component({
2122
selector: "app-supportus",
@@ -79,6 +80,10 @@ export class SupportusComponent implements OnInit {
7980
username: "Not logged in",
8081
avatarHash: "",
8182
};
83+
this.key = this.localstorageService.getItem<BasicInfo>("basicInfo")?.key || this.key;
84+
if (this.key && this.key.length > 12) {
85+
this.tryLogIn();
86+
}
8287
}
8388

8489
protected tryLogIn() {

0 commit comments

Comments
 (0)