Skip to Content
Menú
This question has been flagged
1 Respondre
2813 Vistes

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
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
1
de set. 24
1425
0
de juny 22
328
0
de juny 21
2495
9
de jul. 20
10692
9
de març 20
7015