Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2811 Visualizzazioni

i want to print customized error message  ,In normal scenario login authentication based on username,password ,active filed, But now i want to check another filed like 'expiry_date' along with username and password .  if the expiry_date equals to current_date then need to print  "user expired and need to renew the account "along with a link

Avatar
Abbandona
Risposta migliore

Hello,

If you need to add more field in login view you can extend the template

<template id="web.login" name="Login">

And checking is done in py file addons/web/controllers/main.py and method def web_login


 


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
set 24
1425
0
giu 22
328
0
giu 21
2495
9
lug 20
10691
9
mar 20
7015