us.remote_login()
user = us.get_user()
if not user.is_anonymous:
- return self.lm.auth_successful(user.name, 'password')
+ return self.lm.auth_successful(self.trans, user.name, 'password')
else:
try:
error = cherrypy.request.headers['EXTERNAL_AUTH_ERROR']
except KeyError:
error = "Unknown error using external authentication"
cherrypy.log.error("Error: %s" % error)
- return self.lm.auth_failed()
+ return self.lm.auth_failed(self.trans)
class LoginManager(LoginManagerBase):
'Password'
],
}
+ self.conf_opt_order = ['username text', 'password text', 'help text']
@property
def help_text(self):
order = []
order.append('form')
globalconf['order'] = ','.join(order)
- po.set_config(globalconf)
- po.save_plugin_config(FACILITY)
+ po.save_plugin_config(FACILITY, globalconf)
# for selinux enabled platforms, ignore if it fails just report
try: