LP#1467663 webstaff: login requires valid workstation
authorBill Erickson <berickxx@gmail.com>
Wed, 28 Sep 2016 16:22:44 +0000 (12:22 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 4 Oct 2016 18:13:56 +0000 (14:13 -0400)
commitf1fb083621183bb61e2c43a1f05ec6b868d1956c
tree4e7db00e02d543cce2d56f5029beb07289489fb1
parentd3334b29ea09346b3d026975e4fe89f370e76ff6
LP#1467663 webstaff: login requires valid workstation

Hide the workstation selector when no workstations are registered.
After successful login, direct the user to the new workstation admin
page to create a new workstation.

After successful login with an invalid workstation, direct the user
to the workstation admin page, issuing a 'remove' command to un-register
the offending WS.  On the WS admin page, the user can create a new
workstation or select from their existing workstations.

Any attempt to access a browser client interface (minus the WS admin
page) without a valid workstation will cause the page to redirect to
the workstation admin page.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/staff/t_login.tt2
Open-ILS/web/js/ui/default/staff/app.js
Open-ILS/web/js/ui/default/staff/services/auth.js