Rework remote_login and remove protect decorator
authorSimo Sorce <simo@redhat.com>
Wed, 18 Jun 2014 04:04:08 +0000 (00:04 -0400)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Wed, 27 Aug 2014 20:31:57 +0000 (16:31 -0400)
commit34bb81a826d023ce39714e1a6e027b19cf96a5fd
treec70e17feb7838c8996ee98949d526a552547dfb1
parentfca4035996c93f8f05ea3837133961e28a1248d6
Rework remote_login and remove protect decorator

The protect decorator was not really being used for anything, remove it.

Change the way UserSession's remote_login() works.
If called now it either sets a REMOTE_USER (if found) or nukes the current
user data in the session.
This means this function can be safely called only in a login plugin now.

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
ipsilon/ipsilon
ipsilon/util/page.py
ipsilon/util/user.py
templates/install/ipsilon.conf