Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2799 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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


 


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
sept. 24
1414
0
iun. 22
328
0
iun. 21
2495
9
iul. 20
10685
9
mar. 20
7010