Replies: 1 comment 1 reply
-
Flood server does support that: Lines 134 to 146 in c279760 Currently you can do that with flood/shared/schema/api/auth.ts Lines 28 to 30 in c279760 Flood API is quite easy to use. You can call Flood's APIs simply with # Auth and get auth token from cookie
curl -c auth.token -X POST -H "Content-Type: application/json" -d '{"username":"test","password":"old"}' http://127.0.0.1:3000/api/auth/authenticate
# Change user (everything can be changed, not only password)
curl -b auth.token -X PATCH -H "Content-Type: application/json" -d '{"username":"newName","password":"newPassword"}' http://127.0.0.1:3000/api/auth/users/test Frontend support is on the roadmap: https://github.com/jesec/flood/projects/5#card-51269106. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
thanks for the nice work, I have a few ideas for improvements that may or may not be interesting but I'll share them, the first is: Being able to change the current user's password in flood's UI under "Authentication".
It will make it possible to pre-setup an account and allow the end-user to change their password (in case of a shared flood instance for example)
Beta Was this translation helpful? Give feedback.
All reactions