chatwoot/spec/controllers/devise
Shivam Mishra 9f376c43b5
fix(signup): normalize account signup config checks (#13745)
This makes account signup enforcement consistent when signup is disabled
at the installation level. Email signup and Google signup now stay
blocked regardless of whether the config value is stored as a string or
a boolean.

This effectively covers the config-loader path, where `YAML.safe_load`
reads `value: false` from `installation_config.yml` as a native boolean
and persists it that way.

- Normalized the account signup check so disabled signup is handled
consistently across config value types.
- Reused the same check across API signup and Google signup entry
points.
- Added regression coverage for the disabled-signup cases in the
existing controller specs.

---------

Co-authored-by: Vishnu Narayanan <iamwishnu@gmail.com>
2026-03-10 16:35:09 +05:30
..
confirmations_controller_spec.rb chore: Update dependencies to the latest versions (#5033) 2022-07-15 09:51:59 +07:00
omniauth_callbacks_controller_spec.rb fix(signup): normalize account signup config checks (#13745) 2026-03-10 16:35:09 +05:30
session_controller_spec.rb fix: Remove user.permissions, resolve it from accounts (#9990) 2024-08-21 11:36:26 +05:30
token_validations_controller_spec.rb Chore: Render avatar url in validate token method (#448) 2020-01-27 00:59:51 +05:45