콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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

아바타
취소
베스트 답변

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

아바타
취소
작성자

Not yet Benido

베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
5
11월 22
3860
0
3월 22
2984
0
2월 22
2368
0
12월 21
1901
0
11월 21
1706