Skip to content

Commit

Permalink
Return password from addCustomerNetServiceAccess and addCustomerAppAc…
Browse files Browse the repository at this point in the history
…cess in hid.Hydra
  • Loading branch information
dolfinus committed Jun 26, 2019
1 parent aef195f commit ce8d885
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ce8d885

Please sign in to comment.