Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
12484 Lượt xem

Hii,
We are using Google OAuth2 Authentication for Odoo users to login. Its working ok, users can login to odoo by using their gmail id and password. There is new link added on Odoo login page "Login with Google" and its working.
But on the odoo login page, Email, Password and Log in still appears that is odoo default login option, that is not required. 
We want our odoo users should login by Gmail accounts only.
Please guide how to remove [ Email, Password and Log in] from odoo login page and only appear "Login with Google".
Thanks,    

Ảnh đại diện
Huỷ bỏ

Has anyone got a solution for this? using odoo v13 now.

We are interested in doing the same.  There are huge benefits of using a central authentication authority rather than local authentication, so hopefully there's an easy fix / customization for this somewhere. We are on Odoo 11 Enterprise Edition.

Hi there


Anyone knows if it is possible?

Refgards

Câu trả lời hay nhất

Enable Developer Settings: "Settings" > "Activate The Developer Mode"

Find The Login Template: "Settings" > "Technical" (This is on the top bar) > "User Interface > Views" > Search for "Login"

On the template page and comment out the following lines:

<div class="form-group field-login">
<label for="login">Email</label>
<input type="text" placeholder="Email" name="login" t-att-value="login" id="login" t-attf-class="form-control #{'form-control-sm' if form_small else ''}" required="required" autofocus="autofocus" autocapitalize="off"/>
</div>

<div class="form-group field-password"> <label for="password">Password</label>
<input type="password" placeholder="Password" name="password" id="password" t-attf-class="form-control #{'form-control-sm' if form_small else ''}" required="required" autocomplete="current-password" t-att-autofocus="'autofocus' if login else None" maxlength="4096"/> </div> <button type="submit" class="btn btn-primary btn-block">Log in</button><t t-if="debug"> <button type="submit" name="redirect" value="/web/become" class="btn btn-link btn-sm btn-block">Log in as superuser</button> </t>
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 25
5021
1
thg 6 25
830
0
thg 10 21
3231
1
thg 1 25
1859
4
thg 5 24
7047