{{ config.jurisdiction.name }}
++ Reset your eFile password +
+ ++ For security, a link will be sent to your email from "efilingmail.tylertech.cloud". Visit that link + to reset your password. +
+ + +diff --git a/efile_app/efile/authentication.py b/efile_app/efile/authentication.py index e68eb92..43e42d7 100644 --- a/efile_app/efile/authentication.py +++ b/efile_app/efile/authentication.py @@ -96,3 +96,9 @@ def logout(request): session_data = {k: v for k, v in request.session.items() if k in session_keys_to_keep} request.session.clear() request.session.update(session_data) + + @staticmethod + def password_reset(request): + """Calls the efile-proxy's "reset password" API, which + sends an email from Tyler to reset the password. + """ diff --git a/efile_app/efile/forms.py b/efile_app/efile/forms.py index 2567472..785e965 100644 --- a/efile_app/efile/forms.py +++ b/efile_app/efile/forms.py @@ -17,6 +17,10 @@ class EFileLoginForm(forms.Form): ) +class EFilePasswordResetForm(forms.Form): + email = forms.EmailField(widget=forms.EmailInput(attrs={"class": "form-control", "id": "email", "required": True})) + + class EFileRegistrationForm(forms.Form): # Legal Name first_name = forms.CharField( diff --git a/efile_app/efile/static/css/login.css b/efile_app/efile/static/css/login.css index e628912..2124d48 100644 --- a/efile_app/efile/static/css/login.css +++ b/efile_app/efile/static/css/login.css @@ -78,7 +78,9 @@ body { } .btn-sign-in, -.btn-register { +.btn-register, +.btn-password-reset + { background: #1e3a5f; border: none; border-radius: 25px; @@ -87,18 +89,12 @@ body { font-size: 1.1rem; color: white; transition: all 0.3s ease; -} - -.btn-sign-in { - width: 200px; -} - -.btn-register { width: 200px; } .btn-sign-in:hover, -.btn-register:hover { +.btn-register:hover, +.btn-password-reset:hover { background: #1e3a5f; filter: brightness(1.5); transform: translateY(-1px); @@ -165,3 +161,10 @@ body { .login-form.hide { display: none; } + +.alert-error { + --bs-alert-color: var(--bs-danger-text-emphasis); + --bs-alert-bg: var(--bs-danger-bg-subtle); + --bs-alert-border-color: var(--bs-danger-border-subtle); + --bs-alert-link-color: var(--bs-danger-text-emphasis); +} \ No newline at end of file diff --git a/efile_app/efile/templates/efile/login.html b/efile_app/efile/templates/efile/login.html index 43a7aeb..2b30b35 100644 --- a/efile_app/efile/templates/efile/login.html +++ b/efile_app/efile/templates/efile/login.html @@ -96,7 +96,7 @@
+ For security, a link will be sent to your email from "efilingmail.tylertech.cloud". Visit that link + to reset your password. +
+ + +