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
3 stars 0 forks source link

Toggle users beta access. #89

Open hiyaryan opened 7 months ago

hiyaryan commented 7 months ago

Consider that if beta access is given, a user may use the application inappropriately. Therefore, there should be a way to revoke beta access.

To revoke beta access, this can be done by keeping the token and expiry token used to approve or deny beta access alive instead of deleting them when the user is approved. What happens in this case is that the links sent to the managed inbox are still hot. If the deny link is clicked, the user will be unable to access their account effectively losing beta access. This can also be reversed by simply clicking the approve link again.

Note that the links only work for as long as the expiration date of the token has not passed. Set the expiration date longer, and have it automatically renew for users with beta access, then send out new emails to the managed inbox with fresh links and a subject line to review the users account. For users without beta access, they will have to register again.