owncast/router/middleware
mahmed2000 a7e5f20337
Implement admin password hashing with bcrypt (#3754)
* Add bcrypt hashing helpers

* SetAdminPassword now hashes the password before saving it

* BasicAuth now compares the bcrypt hash for the password

* Modify migration2 to avoid a double password hash when upgrading

* Add migration for bcrypt hashed password

* Do not show admin password hash as initial value

* Update api tests to compare the bcrypt hash of the admin password instead

* Remove old admin password api tests

---------

Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2024-06-26 21:20:22 -07:00
..
activityPub.go Check multiple Accept headers for content-type (#1935) 2022-05-27 10:19:14 -07:00
auth.go Implement admin password hashing with bcrypt (#3754) 2024-06-26 21:20:22 -07:00
caching.go Use bundled images instead of old webroot files 2022-06-20 22:10:55 -07:00
cors.go do not pass http.ResponseWriter as pointer to EnableCors (#1440) 2021-10-01 12:40:13 -07:00
headers.go Support CSP nonce for webv2. Closes #2127 2022-12-12 17:04:00 -08:00
pagination.go Handle pagination for the federated actions & followers responses (#1731) 2022-03-06 17:18:51 -08:00