Display user password in Kirby admin panel

Hi team :wave:!

I am trying to display the password of the users inside the Kirby dashboard. I have two types of roles: administrator and seller and I would like to display the password and a phone field.

Currently I have already managed to add storing the phone field in the dialog modal:

What my client requires is that the password and phone entered in the dialog modal are displayed in the user profile.

Which is shown below:

I’m using Kirby version 4.

I look forward to your response and help.

Thank you very much.

Regards!

The password is not stored in the user content file (user.txt), but in a .htpasswd file, and it is in any case not stored in plain text but hashed, so displaying the plain password is impossible and doesn’t make sense.

Hi @texnixe !

Thank you very much for your response and help. I will pass this on to my client.

Regarding the other field that I added to the user called phone as I show you in the images, how could I show it?

My client wants it to be stored since we added it in the dialog modal.

I await your response and help.

Regards,

Not sure I understand this question. You have to enter a phone number to be able to show it. Which dialog moda?

Hi @texnixe !

Ok, let me explain…

When creating a user, add the phone number field as shown in the following image:

Once the user is created I want to display the phone number that was entered when creating the user in the user profile.

I look forward to your response and help.

Thank you very much.

Regards!

That doesn’t explain how the field got there and if the data from that field gets stored in the user.txt file. If nothing is stored, nothing can be shown. Please look into your user.txt files.

Usually that dialog does not contain a phone field. Did you hack that in yourself?

Hi @distantnative !

If you edit the file that generates the dialog by adding a new phone name field, it loads correctly, I just haven’t been able to identify if it was saved correctly to display it.

If you start hacking the core, you need to make sure yourself to patch it in all the places and understand where the data is routed, so to add it in the right places.

I can only caution you here though, hacking those files will pose a difficulty when you want to update Kirby as your changes will be overwritten.

Hi @distantnative !

You are right, I had not considered the issue of updates, it was a whim of the client to put the phone in the dialog. In the end I told him that it was not advisable and I opted to put it as a fixed field within the user profile with his role.

Thank you very much for the comments.

Regards,