Replies: 21 comments 7 replies
-
welcome itiloo,
|
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your fast answer Rejetto. Is there any tool or way that we can manually register users with a bash script or similar that modifies the config.yaml manually? We know the yq tool to edit it but we are a little lost with it. Thank you very much again. |
Beta Was this translation helpful? Give feedback.
-
making http requests from a bash script is very possible, you can use "curl" for example. also, have a look at /~https://github.com/rejetto/hfs/wiki/APIs |
Beta Was this translation helpful? Give feedback.
-
The answer from server es 200 OK, but it doesn't add the data to the config.yaml EDIT: I just saw that if I do the curl 2 times it works. ? |
Beta Was this translation helpful? Give feedback.
-
there is a bug and the config file is not saved, but internally the account was added. |
Beta Was this translation helpful? Give feedback.
-
i want to give you a version with the fix, so you can confirm that is ok for you. |
Beta Was this translation helpful? Give feedback.
-
0.52.2-rc1 for linux One quick way to update (when you are not running as a service) is to right-click on the "check for updates" button, and paste the link above. |
Beta Was this translation helpful? Give feedback.
-
also, i'm trying this service to document APIs |
Beta Was this translation helpful? Give feedback.
-
Hi Rejetto: In version 0.52.2 RC 1 It seems that everything was going well about "add_account" with curl, but I upgrade to 0.52.2 published and now: curl -s http://localhost/~/api/add_account -H 'content-type: application/json' -H 'x-hfs-anti-csrf: 1' --data-raw '{"username":"david","password":"david","disable_password_change":"true","expire":"2024-04-24","redirect":"/"}' It creates the user and is visible in the config.yaml file, but the user cannot access the frontend, but if I restart the hfs service, they can access it. |
Beta Was this translation helpful? Give feedback.
-
i see, i'll fix this asap |
Beta Was this translation helpful? Give feedback.
-
I just saw that the same thing happens in the rc1 version. |
Beta Was this translation helpful? Give feedback.
-
i expected that. |
Beta Was this translation helpful? Give feedback.
-
Ok, I hope to do my user registration script then. Thank you very much Rejetto. |
Beta Was this translation helpful? Give feedback.
-
with a bit of luck i'll have the fix ready later today |
Beta Was this translation helpful? Give feedback.
-
just a side comment: these problems have never affected the admin-panel because it's using a different api to set the password. |
Beta Was this translation helpful? Give feedback.
-
ok, this should fix it. what happens now is that also add_account will trigger the encryption of the password. |
Beta Was this translation helpful? Give feedback.
-
At the moment it works fine without having to restart the service. I continue doing tests and I will inform you, Rejetto. Thanks again. |
Beta Was this translation helpful? Give feedback.
-
For not creating another new thread. |
Beta Was this translation helpful? Give feedback.
-
creating a new thread is a good idea, it's free and keeps things in order, so next time don't hold yourself. where you configured the upload permissions you also have this field |
Beta Was this translation helpful? Give feedback.
-
Ok, sorry for that. |
Beta Was this translation helpful? Give feedback.
-
not exactly, as that feature is actually offered by the browser, that doesn't support that. |
Beta Was this translation helpful? Give feedback.
-
Hi Rejetto:
First of all, congratulations on the piece of project you have worked on. Thank you very much in advance.
My objective of setting up hfs is to give a repository to users for file exchange and your application is perfect but I have 2 basic questions for my project.
1.-Is it possible to activate any option for the user so that the first login requires them to change their password?
2.-I have the idea of making a script that automatically creates users by modifying the config.yaml file and I have a question about how to generate the srp password. For example, if I want to assign a password that is "test", how can I encode that test password and generate its fingerprint and convert it to srp so I can put it by hand in the config.yaml file?
Thank you very much for the help and your piece of work.
Beta Was this translation helpful? Give feedback.
All reactions