Fix storing login plugin status and order
authorSimo Sorce <simo@redhat.com>
Fri, 26 Sep 2014 21:38:30 +0000 (17:38 -0400)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Mon, 6 Oct 2014 18:27:49 +0000 (20:27 +0200)
commita6ed2bba137df5fb8a9fb2931ccb2d92ca3fa0e0
tree3f5be4b5a17f99978e9090b3ed1e3668d70c06e0
parentfec439b3d8d3d636388fa4a72bb48adfe51520f2
Fix storing login plugin status and order

When plugins were enabled or disabled their status was not stored
in the database, unless the order was explicitly manipulated.
Moreover if the order was changed that fact would not be refrlected
in the actual authntication order until a restart.
Fix the code to always permanently store the enabled/disabled status,
and to immediately change the authentication order.

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
ipsilon/admin/login.py