2022-07-21 13:48:16 -07:00
|
|
|
import ApplicationSerializer from './application';
|
|
|
|
|
|
|
|
|
|
export default ApplicationSerializer.extend({
|
|
|
|
|
modelName: 'credential',
|
|
|
|
|
|
|
|
|
|
_hashForModel(model) {
|
|
|
|
|
const json = ApplicationSerializer.prototype._hashForModel.apply(
|
|
|
|
|
this,
|
|
|
|
|
arguments
|
|
|
|
|
);
|
|
|
|
|
json.credential_store_id = model.credentialStoreId;
|
|
|
|
|
|
2022-07-22 12:29:53 -05:00
|
|
|
// in a real API, the password field is not returned
|
|
|
|
|
// so we delete it from the response
|
|
|
|
|
delete json.attributes?.password;
|
2022-07-21 13:48:16 -07:00
|
|
|
|
|
|
|
|
return json;
|
|
|
|
|
},
|
|
|
|
|
});
|