• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tethysplatform / tethys / 44211402666
100%

Build:
DEFAULT BRANCH: main
Ran 18 Nov 2026 12:57AM UTC
Jobs 1
Files 221
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Nov 2026 12:52AM UTC coverage: 99.933%. Remained the same
44211402666

push

github

web-flow
Allow disabling of forgot password feature (#1314)

* Add utility helpers to gate password reset availability

- Add is_password_reset_enabled() and is_email_configured() to tethys_portal.utilities
- Disable password reset by default; require email configured and ENABLE_PASSWORD_RESET truthy
- Support both EMAIL_CONFIG block and top-level EMAIL_* settings
- Add unit tests covering the enablement matrix, bool coercion, and legacy email detection

* Hide the forgot-password link when reset is disabled

- Render the "Forgot your password?" link on the login page only when password reset is enabled
- Add password_reset_enabled to the login view context via is_password_reset_enabled()
- Update login view tests to expect the new context key

* Redirect password reset views to login when reset is disabled

- Add PasswordResetEnabledMixin that redirects to the login page when password reset is disabled
- Apply the mixin to TethysPasswordResetView and a new TethysPasswordResetConfirmView
- Route the password confirm URL through TethysPasswordResetConfirmView instead of Django's view
- Add tests for the redirect/proceed behavior and update the URL resolver tests

* Use EMAIL_CONFIG format in the SendGrid email example

- Convert the SendGrid email setup example from top-level EMAIL_* settings to the EMAIL_CONFIG.* format
- Align it with the other email configuration example and the recommended format

* Document the ENABLE_PASSWORD_RESET setting

- Add ENABLE_PASSWORD_RESET to the portal configuration settings reference
- Note in the Forgotten Password Recovery guide that reset is disabled by default and requires both email and the setting
- Add --set TETHYS_PORTAL_CONFIG.ENABLE_PASSWORD_RESET True to both email setup examples
- Add a commented ENABLE_PASSWORD_RESET entry to the example portal config

* Format code using python black formatter

* Improve wording of the password reset note in the email config docs

- Clarify that both ENABLE_PASSWORD_RESET and E... (continued)

28 of 28 new or added lines in 3 files covered. (100.0%)

14845 of 14855 relevant lines covered (99.93%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44211402666.1 18 Nov 2026 12:57AM UTC 221
99.93
GitHub Action Run
Source Files on build 44211402666
  • Tree
  • List 221
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • cbbdc0d4 on github
  • Prev Build on main (#42718537961)
  • Next Build on main (#44212072877)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc