Skip to content

[FIX] password_security: accept extra kwargs in do_signup#940

Open
tgaullier wants to merge 2 commits intoOCA:17.0from
GROUPE-SECURILOG:17.0-fix-password_security-do_signup
Open

[FIX] password_security: accept extra kwargs in do_signup#940
tgaullier wants to merge 2 commits intoOCA:17.0from
GROUPE-SECURILOG:17.0-fix-password_security-do_signup

Conversation

@tgaullier
Copy link
Copy Markdown

Closes #939

Problem

Odoo 17's standard auth_signup controller calls do_signup(qcontext, validate_email=...). The password_security override of do_signup does not accept this keyword argument, causing the following crash on password reset:

TypeError: PasswordSecurityHome.do_signup() got an unexpected keyword argument 'validate_email'

This is reproducible with password_security alone, no other OCA auth module needs to be installed.

Fix

Update the do_signup override to accept and forward extra keyword arguments via **kw. This fixes the immediate issue and makes the override robust to future signature changes in Odoo standard.

Odoo 17's standard auth_signup controller calls
do_signup(qcontext, validate_email=...) but the password_security
override of do_signup does not accept this keyword argument,
causing a crash on password reset:

  TypeError: PasswordSecurityHome.do_signup() got an unexpected
  keyword argument 'validate_email'

Update the override to accept and forward extra keyword arguments,
which also makes it more robust to future API changes.
@OCA-git-bot OCA-git-bot added series:17.0 mod:password_security Module password_security labels May 6, 2026
   
   Odoo 17 standard auth_signup validates email format on signup.
   Tests now use a valid email as login to be consistent with
   Odoo 17 behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:password_security Module password_security series:17.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants