``auth_signup_verify_email`` forwards the raw signup values to ``res.users.signup()``. When the form posts ``firstname``/``lastname`` instead of ``name`` (as ``partner_firstname`` forms do), the core ``_create_user_from_template()`` guard rejects the request. This glue module is auto-installed when both modules are installed and derives ``name`` before the guard runs. ``partner_firstname`` keeps computing the final partner name from the split fields.
62 lines
1.8 KiB
ReStructuredText
62 lines
1.8 KiB
ReStructuredText
===========================================================
|
|
Signup: email verification and split names compatibility
|
|
===========================================================
|
|
|
|
Compatibility layer between ``auth_signup_verify_email`` and
|
|
``partner_firstname``.
|
|
|
|
Problem
|
|
=======
|
|
|
|
``auth_signup_verify_email`` implements a passwordless signup flow that
|
|
calls ``res.users.signup()`` directly with the raw request values. When a
|
|
signup form posts ``firstname`` and ``lastname`` instead of ``name`` (as
|
|
forms relying on ``partner_firstname`` commonly do), the core
|
|
``_create_user_from_template()`` guard rejects the request with
|
|
``Signup: no name or partner given for new user``.
|
|
|
|
This module is installed automatically as soon as both
|
|
``auth_signup_verify_email`` and ``partner_firstname`` are installed. It
|
|
derives ``name`` from ``firstname``/``lastname`` before the core guard
|
|
runs. ``partner_firstname`` still computes the final partner name from the
|
|
split fields, so the stored name keeps the configured order.
|
|
|
|
Installation
|
|
============
|
|
|
|
Install ``auth_signup_verify_email`` and ``partner_firstname``. This
|
|
module is installed automatically; no manual step is required.
|
|
|
|
Known issues / Roadmap
|
|
======================
|
|
|
|
None yet.
|
|
|
|
Bug Tracker
|
|
===========
|
|
|
|
Bugs are tracked on `our issues website <https://git.elabore.coop/Elabore/auth-tools/issues>`_. In case of
|
|
trouble, please check there if your issue has already been
|
|
reported. If you spotted it first, help us smashing it by providing a
|
|
detailed and welcomed feedback.
|
|
|
|
Credits
|
|
=======
|
|
|
|
Contributors
|
|
------------
|
|
|
|
* Stéphan Sainléger - `Email<mailto:stephan.sainleger@elabore.coop>` - `Github<https://github.com/stephansainleger>`
|
|
|
|
Funders
|
|
-------
|
|
|
|
The development of this module has been financially supported by:
|
|
* Elabore (https://elabore.coop)
|
|
|
|
|
|
Maintainer
|
|
----------
|
|
|
|
This module is maintained by Elabore.
|