From 34450857ee0e5441df503544177518708023b8bc Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Thu, 25 Mar 2021 12:17:42 -0400
Subject: [PATCH] Adding not allowed to password reset. Fixes #205

---
 src/assets/css/main.css         | 4 ++++
 src/shared/components/login.tsx | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/assets/css/main.css b/src/assets/css/main.css
index 5f67199..eaf596c 100644
--- a/src/assets/css/main.css
+++ b/src/assets/css/main.css
@@ -15,6 +15,10 @@
   pointer-events: auto !important;
 }
 
+.not-allowed {
+  cursor: not-allowed;
+}
+
 .no-click {
   pointer-events: none;
   opacity: 0.65;
diff --git a/src/shared/components/login.tsx b/src/shared/components/login.tsx
index b68795e..325df27 100644
--- a/src/shared/components/login.tsx
+++ b/src/shared/components/login.tsx
@@ -141,7 +141,7 @@ export class Login extends Component<any, State> {
               <button
                 type="button"
                 onClick={linkEvent(this, this.handlePasswordReset)}
-                className="btn p-0 btn-link d-inline-block float-right text-muted small font-weight-bold pointer-events"
+                className="btn p-0 btn-link d-inline-block float-right text-muted small font-weight-bold pointer-events not-allowed"
                 disabled={!validEmail(this.state.loginForm.username_or_email)}
                 title={i18n.t("no_password_reset")}
               >
-- 
2.44.1