realaravinth
f9efb062e0
feat: accept alt DB configuration
2022-07-23 11:59:42 +05:30
realaravinth
b8d3b1449a
feat: adapt db/db-migrations to run mariadb migrations
2022-07-23 11:59:42 +05:30
realaravinth
9b5b34a1f8
feat: impl MCDatabase for mariadb
2022-07-23 11:59:42 +05:30
realaravinth
0b2af2f900
feat: setup CI for mariadb support
2022-07-23 11:59:41 +05:30
realaravinth
9371416398
fix: normalize username during login process too
...
credits: @gusted
2022-07-23 02:24:30 +05:30
realaravinth
9a687f99ee
feat: mv maildev to services
2022-07-23 02:13:12 +05:30
realaravinth
b6afe79a81
fix: initialize DOM elements only when executing methods/in pages that
...
contain those elements
SUMMARY
Trying to grab elements globally in a script results in it trying to
initialize in all pages. When the element is absent, the script
fails and JavaScript crashes.
2022-07-23 00:48:51 +05:30
realaravinth
b12c30e956
feat: cache-bust when make run is called
2022-07-23 00:48:05 +05:30
realaravinth
c5dc72a83c
fix: don't escape license prefixes and script content
2022-07-23 00:47:44 +05:30
realaravinth
3c3982bad5
feat: CI: publish docker img
2022-07-22 23:42:25 +05:30
realaravinth
c92a35a01f
fix: add sqlx offline compilation data
2022-07-22 20:04:41 +05:30
realaravinth
5410a4657b
feat: add changelog entry to doc change in access token verification
...
payload
2022-07-22 19:49:07 +05:30
realaravinth
7d0e4c6be4
fix: prevent sitekey abuse with account secret authentication for access token validation
...
SUMMARY
At present, sitekey can be abused by installing it on a third-party
site as verifying the access token returned from CAPTCHA validation
doesn't require any authentication.
This fix uses account secret authentication to verify access tokens
credits: by @gusted
2022-07-22 19:44:35 +05:30
realaravinth
85f91cb79b
feat: update libmcaptcha
2022-07-21 18:29:16 +05:30
realaravinth
31978a83f2
fix: docker-compose -d up -> docker-compose up -d
2022-07-20 14:45:25 +05:30
realaravinth
22b312b8c5
fix: services.mcaptcha.depends_on must be a list
2022-07-20 14:44:46 +05:30
PierreC
2dce6eb2e8
Fixing some docs issues and adding some lines in docker-compose.yml ( #33 )
...
* Update README.md
* Update README.md
* Update DEPLOYMENT.md
* Update docker-compose.yml
2022-07-19 15:54:42 +05:30
realaravinth
c7d1bc3191
fix: rename postgres in docker-compose to avoid namespace collision
...
fixes: https://github.com/mCaptcha/mCaptcha/issues/31
2022-07-18 22:58:02 +05:30
Aravinth Manivannan
37004c7b4f
Merge pull request #30 from felixonmars/patch-1
...
Correct typos in HACKING.md
2022-07-17 14:37:53 +05:30
Felix Yan
fa9a1a2f4c
Correct typos in HACKING.md
2022-07-17 13:29:21 +08:00
realaravinth
5daeffd6fb
chore: tests to verify mCaptcha counter
2022-05-31 12:46:09 +05:30
realaravinth
be9c6b757e
fix: invert debug flag to set DB logging flag
2022-05-30 16:56:55 +05:30
realaravinth
b30bc67bd4
feat: conditional SQL statements logging for db-sqlx-postgres
2022-05-30 15:48:54 +05:30
realaravinth
a9f8cc24a6
feat: docker build caching with cargo-chef
2022-05-28 16:22:34 +05:30
realaravinth
3710c8f653
feat: fix sqlx offline compilation
2022-05-27 19:06:07 +05:30
realaravinth
629c841e2d
chore: cleanup and addressing clippy lints
2022-05-27 18:37:59 +05:30
realaravinth
d7fd23f565
chore: get rid of direct DB init and use db_*
2022-05-27 18:25:27 +05:30
realaravinth
cd72ae6ffe
feat: migrate fetch captcha config to use db_*
2022-05-27 18:16:47 +05:30
realaravinth
3a535c04a6
feat: impl traits to fetch captcha config sqlx postgres
2022-05-27 18:16:27 +05:30
realaravinth
2212b3b974
feat: def traits to get captcha config
2022-05-27 18:14:51 +05:30
realaravinth
a15d963c3e
feat: migrate get_levels to use db_*
2022-05-27 17:24:40 +05:30
realaravinth
098d0cfc24
feat: migrate fetching stats to use db_*
2022-05-27 17:11:15 +05:30
realaravinth
bc90a51d30
feat: impl fetch captcha stats sqlx postgres
2022-05-27 17:08:55 +05:30
realaravinth
cf66e7efc6
feat: def traits to fetch captcha stats
2022-05-27 17:07:10 +05:30
realaravinth
21dcc2144b
feat: add cmd to run db tests only
2022-05-27 17:07:05 +05:30
realaravinth
bbc8873762
feat: migrate record_stats to use db_*
2022-05-27 16:23:33 +05:30
realaravinth
d28d752a78
feat: impl record stats traits for sqlx postgres
2022-05-27 16:22:45 +05:30
realaravinth
0d395ea67e
feat: def traits to record captcha fetch stats
2022-05-27 16:21:47 +05:30
realaravinth
851874f8cf
feat: load config to make captcha stats optional
2022-05-27 15:25:33 +05:30
realaravinth
4cd4605266
chore: use local app ctx
2022-05-27 15:25:10 +05:30
realaravinth
12edac7915
feat: migrate get_email to use db_*
2022-05-27 03:08:37 +05:30
realaravinth
38d518d843
feat: impl def_email for sqlx postgres
2022-05-26 20:35:38 +05:30
realaravinth
6e45c643b1
feat: def get_email trait
2022-05-26 20:35:25 +05:30
realaravinth
aad49dbb94
feat: migrate notifications add, mark_read and get to use db_* traits
2022-05-26 20:03:05 +05:30
realaravinth
44740535c2
feat: impl traits to add, get and mark read notifications for sqlx
...
postgres
2022-05-26 19:32:16 +05:30
realaravinth
e9921db55b
feat: def traits for adding, getting notifications and marking them read
2022-05-26 19:31:36 +05:30
realaravinth
e4cf625d48
feat: migrate del traffic pattern to use db_* interface
2022-05-14 18:57:58 +05:30
realaravinth
84a92468a1
feat: impl sqlx postgress interface to del traffic pattern
2022-05-14 18:57:21 +05:30
realaravinth
5270ced600
feat: def interface to del traffic pattern
2022-05-14 18:56:41 +05:30
realaravinth
2dd18897b0
feat: migrate getting traffic pattern to use db_* interface
2022-05-14 18:45:59 +05:30