hiyaryan / the-cdj

The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling distorted thinking and finding alternative modes of thought (i.e. reframing) while cognitive distortions are occurring. The CDJ does that work for you. -- The CDJ is in beta testing!!
https://thecdj.app
2 stars 0 forks source link

Add rate limit. #129

Closed hiyaryan closed 4 months ago

hiyaryan commented 4 months ago

Implement Rate Limiting for Enhanced Security

Overview

This pull request introduces rate limiting to the application, aiming to enhance security by preventing brute force attacks and ensuring equitable resource use across users. By differentiating rate limits between authenticated and unauthenticated users, this provides a more secure and user-friendly experience, allowing for a reasonable number of login attempts while protecting against abuse.

Changes

Rationale

Implementing rate limiting is crucial for securing the application against automated attacks and ensuring that resources are fairly distributed among users. The chosen thresholds aim to strike a balance between security and usability, particularly around the login process, where users might make several attempts before successfully logging in.

Testing

Deployment Considerations