Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odpovědi
12473 Zobrazení

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,    

Avatar
Zrušit

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

Nejlepší odpověď

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>
Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
kvě 25
5019
1
čvn 25
821
0
říj 21
3223
1
led 25
1850
4
kvě 24
7042