From fa713b0b1c1459aee52af1bda92040cd4d06340c Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Thu, 7 Aug 2025 22:56:44 -0700 Subject: [PATCH 1/3] update todo --- ToDo.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ToDo.yaml b/ToDo.yaml index 35c717a..060e44a 100755 --- a/ToDo.yaml +++ b/ToDo.yaml @@ -50,6 +50,9 @@ Client: Need to impliment Remove employee Edit Company -> Dont allow edit of company email due to it being verified + All: + Make sure im using the new NG format for for and if + database: Add Applied Jobs Table \ No newline at end of file -- 2.52.0 From 9630147a793cc70b099df6b996701f9e2b23f7d4 Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Thu, 7 Aug 2025 23:21:30 -0700 Subject: [PATCH 2/3] Fix Account datatype in client --- src/Client/src/app/app.ts | 4 +--- src/Client/src/app/models/Account.ts | 8 +------- src/Client/src/app/services/Authentication.ts | 1 - 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/Client/src/app/app.ts b/src/Client/src/app/app.ts index 147e71a..f070416 100644 --- a/src/Client/src/app/app.ts +++ b/src/Client/src/app/app.ts @@ -20,10 +20,8 @@ export class App { this.devMode = isDevMode(); this.route.queryParams.subscribe(params => { - const loginToken = params['LoginToken']; console.log("LoginToken : " + loginToken); - if (loginToken){ this.http.post( "api/account/loginticket", JSON.stringify(loginToken), { headers: {'Content-Type': 'application/json'} } ).subscribe({ next: data => { @@ -40,8 +38,8 @@ export class App { }else{ auth.getLoginState(); } - }); + } } diff --git a/src/Client/src/app/models/Account.ts b/src/Client/src/app/models/Account.ts index 45cf54a..4440194 100644 --- a/src/Client/src/app/models/Account.ts +++ b/src/Client/src/app/models/Account.ts @@ -2,12 +2,6 @@ export class Account { public id: number | null = null; public userName: string = ""; public email: string = ""; - public emailVerified: boolean = false; - public passwordHash: string = ""; - public failedPasswordLock: boolean = false; - public passwordAttempts: number = 5; - public currentPasswordAttempts: number = 0; - public role: string = "Generic"; - public emailToken: string = ""; + public role: string = ""; public dataServer: string = ""; } \ No newline at end of file diff --git a/src/Client/src/app/services/Authentication.ts b/src/Client/src/app/services/Authentication.ts index 8a25a86..4e693e0 100644 --- a/src/Client/src/app/services/Authentication.ts +++ b/src/Client/src/app/services/Authentication.ts @@ -15,7 +15,6 @@ export class Authentication{ let sub = this.http.post( "api/account/loginState", {}, {} ); sub.subscribe({ next: data => { - data.passwordHash = ""; this._user.next(data); }, error: err => { -- 2.52.0 From 53a1fd45a256478257de1385acf723132de450d4 Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Fri, 8 Aug 2025 13:24:35 -0700 Subject: [PATCH 3/3] Fix placement of button --- src/Client/src/app/pages/company/company.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client/src/app/pages/company/company.component.html b/src/Client/src/app/pages/company/company.component.html index f033da4..e299ab6 100644 --- a/src/Client/src/app/pages/company/company.component.html +++ b/src/Client/src/app/pages/company/company.component.html @@ -1,8 +1,8 @@
@for(company of Employers; track company.accountID){ - } +
@if(Comp != null){ -- 2.52.0