Use transactions throughout the code
[cascardo/ipsilon.git] / ipsilon / login / authfas.py
index 1592cac..a571dd4 100755 (executable)
@@ -28,7 +28,8 @@ class FAS(LoginFormBase):
             except Exception, e:  # pylint: disable=broad-except
                 cherrypy.log.error("Unknown Error [%s]" % str(e))
             if data and data.user:
-                return self.lm.auth_successful(data.user['username'],
+                return self.lm.auth_successful(self.trans,
+                                               data.user['username'],
                                                userdata={'fas': data.user})
             else:
                 error = "Authentication failed"
@@ -91,6 +92,9 @@ Form based login Manager that uses the Fedora Authentication Server
                 ''
             ],
         }
+        self.conf_opt_order = ['FAS url', 'FAS Proxy client user Agent',
+                               'FAS Insecure Auth', 'username text',
+                               'password text', 'help text']
 
     @property
     def help_text(self):