Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2826 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Sep 24
1431
0
Jun 22
328
0
Jun 21
2500
9
Jul 20
10701
9
Mar 20
7023