Verify there is a classification field before sending the information to the ERP
This commit is contained in:
parent
e2ba64ef70
commit
3dd44d8b51
|
@ -220,10 +220,11 @@ RecaptchaOptions = { "theme" : "white", "lang" : "fr" };
|
|||
def registration_callback(self, identity):
|
||||
email = identity.email
|
||||
uid = identity.accounts[0].username
|
||||
classification = get_request().form['classification']
|
||||
action = XmlRpcAction.create_ldap_classification(uid, email, classification)
|
||||
get_response().add_after_job('''Send registration to Neogia, email = %r,\
|
||||
classification = %r''' % (email, classification), BatchJob(action))
|
||||
if 'classification' in get_request().form:
|
||||
classification = get_request().form['classification']
|
||||
action = XmlRpcAction.create_ldap_classification(uid, email, classification)
|
||||
get_response().add_after_job('''Send registration to Neogia, email = %r,\
|
||||
classification = %r''' % (email, classification), BatchJob(action))
|
||||
|
||||
def get_idp_sso_list [html] (self):
|
||||
if not get_cfg('providers', {}).items():
|
||||
|
|
Reference in New Issue