Commit graph

93 commits

Author SHA1 Message Date
Aravinth Manivannan
0e75a22beb
chore: bump sqlx to 0.7 2023-10-16 21:15:44 +05:30
Aravinth Manivannan
19d07489f0
fix: run make sqlx to update offline data with license header modification 2023-07-04 15:37:52 +05:30
Aravinth Manivannan
78d85ab9a9
feat: annotate license headers using reuse on text source files 2023-07-03 23:19:51 +05:30
Aravinth Manivannan
3c6b13f947
feat: utility method to check if captcha is published 2023-06-30 16:15:44 +05:30
Aravinth Manivannan
8ca48d85ff
fix: worker_type should not be unique 2023-06-30 07:18:34 +05:30
Aravinth Manivannan
679a35216c
feat: delete analytics when webmaster updates publishing status 2023-06-30 03:16:43 +05:30
Aravinth Manivannan
68b59ade8c
feat: add psuedo ID support to publish campaign IDs 2023-06-30 01:48:24 +05:30
Aravinth Manivannan
8af09939ff
feat: pagination on performance logs fetches 2023-06-28 22:54:18 +05:30
Aravinth Manivannan
dc380adfcf
chore: bump libmcaptcha 2023-06-28 22:49:08 +05:30
Aravinth Manivannan
5ae3b1f26e
feat: store pow performance statistics against statistics 2023-06-27 19:47:04 +05:30
Gusted
a4f9c92b32
Update cargo 2022-10-22 21:53:18 +02:00
Gusted
8826f6df8f
Fix compiling
- I made some mistakes while checking my two previous PRs(Seems like I
don't understand Rust that great after all).
- Do the url encoding only on the password part, not only the whole URL.
- Fix `temporary value dropped while borrowed` compile error.
2022-10-22 21:28:58 +02:00
Gusted
021f2fe5b4
Encode connection URL to database
- If you have a database password that contains characters like `#` or `*`, sqlx
will error about a InvalidPort, this is due to not encoding the url.
[See issue on sqlx](https://github.com/launchbadge/sqlx/issues/1624).
- Removed useless statements.
2022-10-16 23:37:24 +02:00
realaravinth
e5e89bd8a0
chore: bump libmcaptcha, switch to master 2022-08-13 01:58:40 +05:30
realaravinth
f8e6bdf229
feat: bump libmcaptcha 2022-08-09 16:29:05 +05:30
realaravinth
ce1b3b0856
feat: bump libmcaptcha and pow_sha256 2022-08-09 02:51:40 +05:30
Kian-Meng Ang
bb42841a66 Fix typos 2022-08-04 23:06:54 +08:00
realaravinth
337a378b08
feat: add checks to verify the DB error situations 2022-07-23 15:50:25 +05:30
realaravinth
d5b17ac00e
fix: mariadb error to lib error conversion 2022-07-23 15:50:01 +05:30
realaravinth
a50763f520
feat: implement get_secret_from_captcha for db-sqlx-mariadb 2022-07-23 15:49:41 +05:30
realaravinth
249b6461ee
chore: migrate tests to also run with mariadb 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
c92a35a01f
fix: add sqlx offline compilation data 2022-07-22 20:04:41 +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
b30bc67bd4
feat: conditional SQL statements logging for db-sqlx-postgres 2022-05-30 15:48:54 +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
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
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
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
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
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
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
b983f08884
feat: impl sqlx postgress interface to get traffic pattern 2022-05-14 18:45:42 +05:30
realaravinth
212c03a0e2
feat: def interface to get traffic pattern 2022-05-14 18:45:25 +05:30
realaravinth
dacdd2cb8e
feat: implement interface to add user's traffic pattern sqlx postgres 2022-05-14 18:22:36 +05:30
realaravinth
2132ab5791
feat: define interface to add user's traffic pattern 2022-05-14 18:22:21 +05:30
realaravinth
7daffe767c
feat: implement get captcha cooldown period interface for sqlx postgres 2022-05-14 16:27:28 +05:30
realaravinth
09a8591cb4
feat: define get captcha cooldown period interface 2022-05-14 16:27:15 +05:30
realaravinth
ddb6d336f7
feat: implement accountnotfound and captcha notfound err vals for sqlx postgres 2022-05-13 19:09:00 +05:30
realaravinth
3edb2252af
feat: define accountnotfound and captcha notfound err vals 2022-05-13 19:08:14 +05:30
realaravinth
a7590ea14e
feat: implement getting captcha levels for sqlx postgres 2022-05-13 19:07:50 +05:30
realaravinth
04a9bc5cc7
feat: define interface for getting captcha levels 2022-05-13 19:07:27 +05:30