跳至內容
選單
此問題已被標幟
2 回覆
3060 瀏覽次數

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
3702
0
3月 22
2914
0
2月 22
2298
0
12月 21
1808
0
11月 21
1621