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

Hi, can anyone tell me, 

How to allow the user to the website only after login, if they didn't log in, they should be redirected  to the login page, and once they logged in, they can see the website

I've tried auth="user" in the web module ( for testing purposes) and also tried by writing a custom module, can anyone tell answer, please

Ảnh đại diện
Huỷ bỏ

Hello,
In that case, do you want the menu will be visible after login or anything else?

Tác giả Câu trả lời hay nhất

the menu can show, but if they click that without login, it should redirect to the login page,

but if they log in and click the website, it can go to the website page.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 3 24
4963
1
thg 9 22
3695
2
thg 7 22
2257
1
thg 6 22
2806
0
thg 4 22
1748