Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
2800 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Sept. 24
1422
0
Juni 22
328
0
Juni 21
2495
9
Juli 20
10690
9
März 20
7014