Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
3073 Weergaven

I am using Odoo14,

How to validate user input in the website form (frontend) if the email they are filling already exists in the database?


I want to make something like this, but validate email instead of username:


Is there any code in the current frontend of Odoo modules that has the same features that I can follow?

Please, any help, source, or tutorial on how to do that will be very appreciated.

Thanks,

Tri

Avatar
Annuleer
Beste antwoord

Hi Tri, have you found the answer to your question?

Avatar
Annuleer
Auteur

Not yet Benido

Beste antwoord

Hi,

In Odoo addons, there is a module named 'auth_signup'. In that module, it has a controller main.py code you can see the method.

@http.route('/web/signup', type='http', auth='public', website=True, sitemap=False)
def web_auth_signup(self, *args, **kw):

Where you can get all ready made user authorisation including email validation for the users logging in from odoo website.

Hope it helps

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
5
nov. 22
3723
0
mrt. 22
2918
0
feb. 22
2299
0
dec. 21
1815
0
nov. 21
1622