تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1704 أدوات العرض

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

الصورة الرمزية
إهمال

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

الكاتب أفضل إجابة

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
4
مارس 24
5155
1
سبتمبر 22
3828
2
يوليو 22
2384
1
يونيو 22
2910
0
أبريل 22
1774