Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4 Risposte
12476 Visualizzazioni

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
Abbandona

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

Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
mag 25
5021
1
giu 25
827
0
ott 21
3224
1
gen 25
1856
4
mag 24
7044