Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2807 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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


 


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 24
1422
0
thg 6 22
328
0
thg 6 21
2495
9
thg 7 20
10691
9
thg 3 20
7015