LP#1775466 Avoid workstation removal login loop
authorBill Erickson <berickxx@gmail.com>
Mon, 9 Jul 2018 21:52:24 +0000 (17:52 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 11 Jul 2018 14:18:30 +0000 (10:18 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/login.component.ts

index b8e1b95..d33bf0b 100644 (file)
@@ -59,8 +59,12 @@ export class StaffLoginComponent implements OnInit {
         // post-login URL
         let url: string = this.auth.redirectUrl || '/staff/splash';
 
-        // prevent sending the user back to the login page.
-        if (url.startsWith('/staff/login')) { url = '/staff/splash'; }
+        // prevent sending the user back to the login page or looping
+        // back to the workstation removal page.
+        if (url.startsWith('/staff/login') ||
+            url.startsWith('/staff/admin/workstation/workstations/remove/')) { 
+            url = '/staff/splash'; 
+        }
 
         const workstation: string = this.args.workstation;