LP#1467663 webstaff: login requires valid workstation user/berick/lp1467663-webstaff-workstation-required
authorBill Erickson <berickxx@gmail.com>
Wed, 28 Sep 2016 16:22:44 +0000 (12:22 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 3 Oct 2016 15:05:41 +0000 (11:05 -0400)
commit378654bc9daeda34972cab6396064cb811d0b419
treefd07af28a33bd70831c6e13a5ac9eca91cc73dcc
parentca8e8cf239ec42423c72b4380212da23cee9e1fd
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>
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