-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added column "Created by" to hashlist overview #778
base: master
Are you sure you want to change the base?
Conversation
Thanks a lot for the contribution, it already looks pretty great. As you mentioned, the creator is shown on the hashlist overview. I think it would be beneficial to also have it listed on the hashlist details page (e.g. below the "Member of Access Group" row), could you add this? Regarding your question for the update script. The idea is that an atomic change in the DB should be wrapped in an if statement which checks for a unique key (to determine if it already was applied or not), e.g. Would it be possible to add these changes? I will test it more in detail afterwards and happily merge it. |
Thank you for the valuable feedback. Sure, I will try my best to integrate it into the detail template too and of course in the change log and try my best with the database migration script. I will report back ASAP |
…ashtopolis-master
Okay changes done, please check, I had to merge upstream commits so I hope that was done correctly :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small change, add the new field to the generator.php found in the src/dba/models/
$CONF['Hashlist'] = [
'hashlistId',
'hashlistName',
'format',
'hashTypeId',
'hashCount',
'saltSeparator',
'cracked',
'isSecret',
'hexSalt',
'isSalted',
'accessGroupId',
'notes',
'brainId',
'brainFeatures',
'creatorId'
];
Bigger issue to resolve: if a user gets deleted; the creatorId should be reset of all of the issues owned by the user or else it will return an error when trying to list access a hashlist because it ID does not resolve to a username anymore.
Thank you for looking over it, you are completely right, I forgot to add and cover those cases. |
@dr0pd34d How far are you on this? Is it ready to be reviewed again? |
As you can see I did resolve a lot of the requested changes. The biggest issue was not tackled yet, which is: |
Do you need some help with implemnting that or are you working on it? |
@zyronix Yes please some help would be nice. Currently missing the time to follow up on the issue. |
As a group of people using the tool we always wondered where to see which user created the hashlist in order to provide support or give advice.
I thought I would try my best in order to add the feature through a pull request.
For now it is only shown in the "Hashlists" overview as a sortable column.
As so far the ID of the creating user has not been saved with the hashlist, I created the column in the database setup file.
I have no experience with the database migration scripts so please help me out here, thank you. :)
I hope everything is in the right spot and the solution to pass the creator username into the template is done in the right way.
Please let me know as I am always open for improvements.
Thank you for the great tool!