owncast/core/data
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 Social features / ActivityPub federation (#1629) 2022-01-12 13:53:10 -08:00
cache.go Fix concurrency crash. Closes #1067 2021-06-07 21:59:43 -07:00
config.go Implement admin password hashing with bcrypt (#3754) 2024-06-26 21:20:22 -07:00
configEntry.go chore(go): run betteralign and gofumpt on codebase 2023-10-08 14:22:28 -07:00
crypto.go Social features / ActivityPub federation (#1629) 2022-01-12 13:53:10 -08:00
data.go Add user color database migration. Closes #1984 2022-10-17 21:44:12 -07:00
data_test.go chore(go): run betteralign and gofumpt on codebase 2023-10-08 14:22:28 -07:00
datastoreMigrations.go Implement admin password hashing with bcrypt (#3754) 2024-06-26 21:20:22 -07:00
defaults.go API + Data changes to support split up of stream keys and admin passwords 2022-11-29 16:05:44 -08:00
emoji.go fix(emoji): hopefully guard against the crash in #3331 2023-10-21 22:13:13 -07:00
messages.go Function has been re-exported for use 2022-08-03 11:30:06 -07:00
migrations.go Update to Go 1.20 + run better align (#2927) 2023-05-30 10:31:43 -07:00
persistence.go Fix creating table indexes 2022-08-03 10:31:14 -07:00
types.go chore(go): run betteralign and gofumpt on codebase 2023-10-08 14:22:28 -07:00
users.go Fix creating table indexes 2022-08-03 10:31:14 -07:00
utils.go Fix creating table indexes 2022-08-03 10:31:14 -07:00
webhooks.go Remove unnecessary var data in log messages. Closes #1640 2022-02-25 15:22:52 -08:00