Skip to Content
Menu
This question has been flagged
1 Atsakyti
1774 Rodiniai

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

Portretas
Atmesti

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

Autorius Best Answer

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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
4
kov. 24
5235
1
rugs. 22
3877
2
liep. 22
2447
1
birž. 22
2972
0
bal. 22
1832