Spectrum-CETB / LesKollab

This is a project sharing and collaborations application
MIT License
29 stars 57 forks source link

bug in index.php #101

Closed arpit456jain closed 3 years ago

arpit456jain commented 3 years ago

Describe the bug When the admin logged in and go on index.php the button is showing login instead of logout

https://user-images.githubusercontent.com/55352601/115229087-3aaf4800-a130-11eb-9b33-3c5634625d99.mp4

Expected behavior It will show logout there and on clicking on that the admin should be logout

arpit456jain commented 3 years ago

@rupeshmohanty kindly assign me this issue

rupeshmohanty commented 3 years ago

@arpit456jain Admin login should not be connected to the user login page, Both user side and admin side should work parallely.

arpit456jain commented 3 years ago

yes @rupeshmohanty i am getting it

but try to understand my issue . it you login as normal user you will not be able to access index.php it will redirect to dashboard.

now only admin can visit index.php before login and after login both so if admin is logged in there should be logout otherwise login.

the url for logout admin can be added later when log out button for admin is added there is already a issue opened for that .

arpit456jain commented 3 years ago

@rupeshmohanty there is also one more bug

https://user-images.githubusercontent.com/55352601/115260777-adc8b680-a150-11eb-8332-4d5f613538a5.mp4

rupeshmohanty commented 3 years ago

@arpit456jain You gave the wrong URL, it should be /admin/admin_login.php

arpit456jain commented 3 years ago

@arpit456jain You gave the wrong URL, it should be /admin/admin_login.php

@rupeshmohanty i don't give the wrong url There is wrong url is in code you can check it on your system .

arpit456jain commented 3 years ago

@arpit456jain You gave the wrong URL, it should be /admin/admin_login.php

I just try to access admin dashboard that's why i give the url for dashboard it should redirect me to login page

@rupeshmohanty

rupeshmohanty commented 3 years ago

@arpit456jain See it works perfectly on my system! image

arpit456jain commented 3 years ago

@arpit456jain See it works perfectly on my system! image

@rupeshmohanty did you give the url

http://localhost/lesscolab/admin/admin_dashboard.php ??

rupeshmohanty commented 3 years ago

Are you trying to access the dashboard page from the URL?

arpit456jain commented 3 years ago

Are you trying to access the dashboard page from the URL?

Yes

rupeshmohanty commented 3 years ago

Yeah you can put a check on the dashboard page which redirects the user to the admin-login if not logged in yet or redirects to the dashboard page if there is a session.