Skip to content

Commit

Permalink
[IMP] auth_signup_verify_email: pre-commit execution
Browse files Browse the repository at this point in the history
  • Loading branch information
augusto-weiss committed Dec 18, 2023
1 parent 2a12589 commit 3ee0d2c
Show file tree
Hide file tree
Showing 15 changed files with 66 additions and 57 deletions.
51 changes: 26 additions & 25 deletions auth_signup_verify_email/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ Verify email at signup
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github
:target: https://github.com/OCA/server-auth/tree/16.0/auth_signup_verify_email
:target: https://github.com/OCA/server-auth/tree/17.0/auth_signup_verify_email
:alt: OCA/server-auth
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_signup_verify_email
:target: https://translation.odoo-community.org/projects/server-auth-17-0/server-auth-17-0-auth_signup_verify_email
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-auth&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-auth&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the functionality of public sign up to force users to
provide a valid email address.
This module extends the functionality of public sign up to force users
to provide a valid email address.

To achieve this, users are not required to provide a password at
sign up: they are asked for only at first login attempt.
To achieve this, users are not required to provide a password at sign
up: they are asked for only at first login attempt.

**Table of contents**

Expand All @@ -42,57 +42,58 @@ sign up: they are asked for only at first login attempt.
Installation
============

* Install `email_validator <https://pypi.org/project/email-validator/>`_
with ``pip install email_validator`` or equivalent.
- Install
`email_validator <https://pypi.org/project/email-validator/>`__ with
``pip install email_validator`` or equivalent.

Configuration
=============

To configure this module, you need to:

* `Properly configure your outgoing email server(s)
<https://www.odoo.com/forum/help-1/question/how-to-configure-email-gateway-282#answer_290>`_.
* Go to *Settings > General Settings -> General settings*, search for
the *Users* section and enable *Free sign up* in *Customer account*.
- `Properly configure your outgoing email
server(s) <https://www.odoo.com/forum/help-1/question/how-to-configure-email-gateway-282#answer_290>`__.
- Go to *Settings > General Settings -> General settings*, search for
the *Users* section and enable *Free sign up* in *Customer account*.

Usage
=====

To use this module, you need to:

* Log out.
* `Sign up </web/signup>`_ with a valid email.
- Log out.
- `Sign up </web/signup>`__ with a valid email.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-auth/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-auth/issues/new?body=module:%20auth_signup_verify_email%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/server-auth/issues/new?body=module:%20auth_signup_verify_email%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~
-------

* Antiun Ingeniería S.L.
* Tecnativa

Contributors
~~~~~~~~~~~~
------------

* Rafael Blasco <[email protected]>
* Jairo Llopis <[email protected]>
* Simone Orsi <[email protected]>
* Alexandre Díaz <[email protected]>
* Eugene Molotov <[email protected]>
- Rafael Blasco <[email protected]>
- Jairo Llopis <[email protected]>
- Simone Orsi <[email protected]>
- Alexandre Díaz <[email protected]>
- Eugene Molotov <[email protected]>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -104,6 +105,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/server-auth <https://github.com/OCA/server-auth/tree/16.0/auth_signup_verify_email>`_ project on GitHub.
This module is part of the `OCA/server-auth <https://github.com/OCA/server-auth/tree/17.0/auth_signup_verify_email>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions auth_signup_verify_email/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
6 changes: 6 additions & 0 deletions auth_signup_verify_email/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
To configure this module, you need to:

- [Properly configure your outgoing email
server(s)](https://www.odoo.com/forum/help-1/question/how-to-configure-email-gateway-282#answer_290).
- Go to *Settings \> General Settings -\> General settings*, search for
the *Users* section and enable *Free sign up* in *Customer account*.
6 changes: 0 additions & 6 deletions auth_signup_verify_email/readme/CONFIGURE.rst

This file was deleted.

5 changes: 5 additions & 0 deletions auth_signup_verify_email/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- Rafael Blasco \<<[email protected]>\>
- Jairo Llopis \<<[email protected]>\>
- Simone Orsi \<<[email protected]>\>
- Alexandre Díaz \<<[email protected]>\>
- Eugene Molotov \<<[email protected]>\>
5 changes: 0 additions & 5 deletions auth_signup_verify_email/readme/CONTRIBUTORS.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This module extends the functionality of public sign up to force users to
provide a valid email address.
This module extends the functionality of public sign up to force users
to provide a valid email address.

To achieve this, users are not required to provide a password at
sign up: they are asked for only at first login attempt.
To achieve this, users are not required to provide a password at sign
up: they are asked for only at first login attempt.
2 changes: 2 additions & 0 deletions auth_signup_verify_email/readme/INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Install [email_validator](https://pypi.org/project/email-validator/)
with `pip install email_validator` or equivalent.
2 changes: 0 additions & 2 deletions auth_signup_verify_email/readme/INSTALL.rst

This file was deleted.

4 changes: 4 additions & 0 deletions auth_signup_verify_email/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
To use this module, you need to:

- Log out.
- [Sign up](/web/signup) with a valid email.
4 changes: 0 additions & 4 deletions auth_signup_verify_email/readme/USAGE.rst

This file was deleted.

22 changes: 12 additions & 10 deletions auth_signup_verify_email/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,11 @@ <h1 class="title">Verify email at signup</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:dd7b5841641c2a3cd11c65edf7bf06c918b7c772fe6ca2dfb66c9f7b433e5371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-auth/tree/16.0/auth_signup_verify_email"><img alt="OCA/server-auth" src="https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_signup_verify_email"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-auth&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module extends the functionality of public sign up to force users to
provide a valid email address.</p>
<p>To achieve this, users are not required to provide a password at
sign up: they are asked for only at first login attempt.</p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-auth/tree/17.0/auth_signup_verify_email"><img alt="OCA/server-auth" src="https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-auth-17-0/server-auth-17-0-auth_signup_verify_email"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-auth&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module extends the functionality of public sign up to force users
to provide a valid email address.</p>
<p>To achieve this, users are not required to provide a password at sign
up: they are asked for only at first login attempt.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -392,15 +392,17 @@ <h1 class="title">Verify email at signup</h1>
<div class="section" id="installation">
<h1><a class="toc-backref" href="#toc-entry-1">Installation</a></h1>
<ul class="simple">
<li>Install <a class="reference external" href="https://pypi.org/project/email-validator/">email_validator</a>
with <tt class="docutils literal">pip install email_validator</tt> or equivalent.</li>
<li>Install
<a class="reference external" href="https://pypi.org/project/email-validator/">email_validator</a> with
<tt class="docutils literal">pip install email_validator</tt> or equivalent.</li>
</ul>
</div>
<div class="section" id="configuration">
<h1><a class="toc-backref" href="#toc-entry-2">Configuration</a></h1>
<p>To configure this module, you need to:</p>
<ul class="simple">
<li><a class="reference external" href="https://www.odoo.com/forum/help-1/question/how-to-configure-email-gateway-282#answer_290">Properly configure your outgoing email server(s)</a>.</li>
<li><a class="reference external" href="https://www.odoo.com/forum/help-1/question/how-to-configure-email-gateway-282#answer_290">Properly configure your outgoing email
server(s)</a>.</li>
<li>Go to <em>Settings &gt; General Settings -&gt; General settings</em>, search for
the <em>Users</em> section and enable <em>Free sign up</em> in <em>Customer account</em>.</li>
</ul>
Expand All @@ -418,7 +420,7 @@ <h1><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-auth/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/server-auth/issues/new?body=module:%20auth_signup_verify_email%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/server-auth/issues/new?body=module:%20auth_signup_verify_email%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -447,7 +449,7 @@ <h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-auth/tree/16.0/auth_signup_verify_email">OCA/server-auth</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-auth/tree/17.0/auth_signup_verify_email">OCA/server-auth</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion auth_signup_verify_email/tests/test_verify_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
try:
from unittest.mock import patch
except ImportError:
from mock import patch
from unittest.mock import patch

from odoo.tests.common import HttpCase
from odoo.tools.misc import mute_logger
Expand Down
Binary file added pandoc-3.1.11-1-amd64.deb
Binary file not shown.
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# generated from manifests external_dependencies
email_validator
lxml

0 comments on commit 3ee0d2c

Please sign in to comment.