109 Commits

Author SHA1 Message Date
realaravinth
91c6f77cab
chore: update actix-* deps 2022-05-07 16:10:14 +05:30
realaravinth
a668fafa62
feat: migrate v1 api mod to use actix_auth_middleware 2022-05-07 12:29:37 +05:30
realaravinth
fc8a1670d2
update copyright notice 2022-01-08 22:16:05 +05:30
realaravinth
c46b3f4f4c
Implement easy edit view
When user tries to visit this view without an easy configuration
available, i.e, user had created the CAPTCHA using advance view and no
TrafficPattern is available in database, the user will be automatically
redirected to the advance edit page.

But the default edit link everywhere is to the easy edit view.
2021-12-18 21:01:19 +05:30
realaravinth
fe1fc3fb20
address clippy lints 2021-12-18 14:10:05 +05:30
realaravinth
73ce2d1cb1
refactor captcha.rs and levels.rs and rm duration routes 2021-12-16 20:46:50 +05:30
realaravinth
cf4a0f9b73
Update CAPTCHA configuration by updating user provided traffic pattern 2021-12-16 18:15:15 +05:30
realaravinth
05f7e81c21
rename from_user_provided_traffic_pattern to create_easy
isolate non-async test in separate module
2021-12-16 17:47:30 +05:30
realaravinth
54b14291ec
Implement CAPTCHA configuration estimation from avg, peak and
broke_my_site_traffic

The above metrics are sourced from the user and are stored in the
database to reuse at a later point in time when the mCaptcha instance's
admin changes suggested configuration.

I'm not sure if I want to recompute configuration every time the admin
updates suggested configurations or give the user an option to recompute
based on latest trends. If we recompute on every update, then should the
admin choose very high difficulty_factors then it would hold back the
user's visitors, which is not nice. But there should also be an option
to rerun estimates when older configuration no longer works properly.
2021-12-03 14:26:23 +05:30
realaravinth
b5af9ee259
it appears actix-web's scope behaviour has changed in the latest beta
release:

Routes 404'd when scope contained trailing slash like so:
let scope = "/api/v1/pow/";
web::scope(scope)//

So had to rm trailing slash in scope
2021-11-29 17:33:08 +05:30
realaravinth
53720ff740
frontend linting 2021-10-08 15:24:29 +05:30
realaravinth
f7afc72d81
update levels in cache when db is updated 2021-08-31 13:54:05 +05:30
realaravinth
a8c3eaa617
clean up systemgroup interface 2021-08-20 19:17:40 +05:30
realaravinth
595e79a014
update sqlx data, delete user in username_change test 2021-08-12 17:22:41 +05:30
realaravinth
a65b1c219c
username update 2021-08-12 17:13:17 +05:30
realaravinth
147f563ec8
demo user task 2021-08-09 11:56:25 +05:30
realaravinth
3c72d27b36
demo user 2021-08-09 10:37:19 +05:30
realaravinth
a5558e4b6f
clippy fixes and env docs update 2021-08-08 18:29:17 +05:30
realaravinth
1d759fcb25
captcha stats 2021-07-27 15:28:21 +05:30
realaravinth
8830961e04
stats endpoint 2021-07-25 21:15:59 +05:30
realaravinth
4b18992f6a
settings page, clipboard component 2021-07-20 18:14:23 +05:30
realaravinth
00768cce34
delete captcha 2021-07-20 13:02:53 +05:30
realaravinth
f7c9217667
update and rename captcha plumbing 2021-07-19 17:12:56 +05:30
realaravinth
1b0a95e768
tests: get status code from err 2021-07-17 18:57:33 +05:30
realaravinth
c3e43ff584
update password 2021-07-17 18:51:20 +05:30
realaravinth
dda936d207
"duplicate email check" 2021-07-17 18:14:03 +05:30
realaravinth
8f87efeeb3
error correction, tests for err branches, rm get_token, get_token,
delete captcha
2021-07-17 17:43:53 +05:30
realaravinth
ea8264054a
edit sitekey, router pattern matching, sitekey update optimization, rm level delete and level err handling 2021-07-16 17:40:52 +05:30
realaravinth
883aa122b2
notification date formatting 2021-07-14 21:38:03 +05:30
realaravinth
558dbef712
dupe email check and notifications table 2021-07-13 21:23:08 +05:30
realaravinth
47cca5c9a7
notifications view 2021-07-12 21:22:26 +05:30
realaravinth
b7ec1bca22
duplicate email check and address clippy warnings 2021-07-11 21:46:50 +05:30
realaravinth
67a35a6e43
clear cookie after account deletion and CI: skip build 2021-07-09 11:49:01 +05:30
realaravinth
bfebca6e0e
widget static resources are now built locally 2021-07-07 00:28:32 +05:30
realaravinth
c05888d648
cargo fmt 2021-06-30 20:14:15 +05:30
realaravinth
9f940c317a
upgrading to actix-v4-beta 2021-06-30 20:13:12 +05:30
realaravinth
481cb95cd2
addressing clippy lints 2021-06-29 20:12:51 +05:30
realaravinth
d5aceb60b4
sign in with email 2021-06-29 19:42:07 +05:30
realaravinth
6cd477e227
multipart form was a bad idea 2021-06-28 19:58:01 +05:30
realaravinth
cc17f2048f
errorable and seperated runner methods for auth 2021-06-28 19:16:59 +05:30
realaravinth
9636180673
redis health check: return err when unable to connect 2021-06-13 12:53:58 +05:30
realaravinth
3132a48087
add redis to health check 2021-06-12 13:44:18 +05:30
realaravinth
dcfba60c86
addressing clippy lints 2021-06-11 23:39:38 +05:30
realaravinth
dc53cd76d4
CI: launch redis early 2021-06-11 19:47:49 +05:30
realaravinth
f5624947b9
redis storage for captcha mech 2021-06-11 19:31:03 +05:30
realaravinth
9e70f8f756
rename guard -> mcaptcha 2021-06-01 17:33:47 +05:30
realaravinth
fcdbe66b26
captcha stats 2021-05-27 14:47:29 +05:30
realaravinth
90fa5ebd19
mark notifications read 2021-05-25 17:22:49 +05:30
realaravinth
72667bd2e1
using custom version of actix-codegen and cors for pow routes 2021-05-25 14:34:24 +05:30
realaravinth
0421cb681c
show password compoenent 2021-05-15 21:36:52 +05:30