From ce8d885acf924f91b647ac727716430f47847b77 Mon Sep 17 00:00:00 2001 From: dolfinus Date: Wed, 26 Jun 2019 17:44:58 +0300 Subject: [PATCH] Return password from addCustomerNetServiceAccess and addCustomerAppAccess in hid.Hydra --- .../latera/bss/connectors/hid/hydra/Customer.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/org/camunda/latera/bss/connectors/hid/hydra/Customer.groovy b/src/org/camunda/latera/bss/connectors/hid/hydra/Customer.groovy index db9f44e0..e4eefb1f 100644 --- a/src/org/camunda/latera/bss/connectors/hid/hydra/Customer.groovy +++ b/src/org/camunda/latera/bss/connectors/hid/hydra/Customer.groovy @@ -421,13 +421,13 @@ trait Customer { vch_VC_LOGIN : params.login ]) if (access) { - Boolean passwordIsSet = changeNetServicePassword(subjServId: access?.num_N_SUBJ_SERV_ID, newPassword: params.password) + Boolean passwordIsSet = changeNetServicePassword(subjServId: access.num_N_SUBJ_SERV_ID, newPassword: params.password) if (!passwordIsSet) { throw new Exception('Error while setting application password!') } } logger.info(" Customer now have access to net service!") - return access + return access + [vch_VC_PASS: params.password] } catch (Exception e){ logger.error(" Error while providing access to net service!") logger.error_oracle(e) @@ -525,13 +525,13 @@ trait Customer { vch_VC_LOGIN : params.login ]) if (access) { - Boolean passwordIsSet = changeAppPassword(subjServId: access?.num_N_SUBJ_SERV_ID, newPassword: params.password) + Boolean passwordIsSet = changeAppPassword(subjServId: access.num_N_SUBJ_SERV_ID, newPassword: params.password) if (!passwordIsSet) { throw new Exception('Error while setting application password!') } } logger.info(" Customer now have access to application!") - return access + return access + [vch_VC_PASS: params.password] } catch (Exception e){ logger.error(" Error while providing access to application!") logger.error_oracle(e)