admin panel setup for mean stack app - mean-stack

I am building an e-commerce website which will require continuous updation of products, so for that I need t setup admin panel for the website. My app is based on MEAN stack. Now, I am confused on how to handle session for admin panel and website and also how to configure the admin panel. My application is almost ready only admin panel is left.
Do I need to handle sessions separately for admin panel and website and if yes how ? Currently I am using node-passport for sessions.
how can I use subdomain to open admin panel, for eg. I have a domain called www.abc.com, Now I want to use admin.abc.com and in that case I want to redirect user to the admin panel. How can I create sub domain ? and How can I handle this in my MEAN app ?

Related

login as a user and admin at the same time in laravel

I am working on a laravel project in which from ADMIN panel I can log in in the user module, but when I want to go back from the browser the admin panel is not working means admin is logout. is there any method in which I can log in in both module admin and user.
If you log in as one user, you log out as the other.
I see 2 possibilities:
1) Make 2 user tables, with separate login/logout/etc. one for your frontend users, one for your admin panel.
The advantage here is that your regular users will never be able to login as an admin, because they don't exist in that table.
2) Separate your frontend and admin panel into 2 different projects. You can link them to the same database. Put the admin panel on a subsite admin.my-project.com.
The advantage here is that you seperate your logic between 2 projects, each focused on different functionality, with their own styling, layout and most important for your example: authentication.
Use an incognito browser window for your admin tasks, which will enable you to be logged in to the same app twice.
You could solve your problem with two possible ways that laravel provide and you could google about "laravel multi auth example".
Multiple authentications using "middleware"
Multiple authentications using auth "guards"
Here are two articles will help you to understand and show you the implement with an example:
Laravel 6 Multi Auth (Authentication) Tutorial
How to use multiple authentication guards in a Laravel app

1 installation of codeigniter removes sessions of other installation

I am developing a site which has an admin panel too. The structure of my website is following.
application(front site)
controllers
views
models
admin
application
controllers
views
models
The problem occurs when I login to admin and on the same time I open front end in the same browser. It removes session for admin so admin logouts after opening front end.

cs-cart admin user login always act as vendor profile Issue

I face one issue and not found any solution through cs-cart community That is - When I login to admin area from my admin URL like https://demo.com/admin.php and enter correct authentication infromation and click on login then I always act as Vendor not like admin it means that my after login screen is same as vendor screen and cant access any admin features.
After login my URL is same as admin URL but I act as vendor instead of admin.
I double check my database user settings and all are correct also. My admin user_type is also 'A' and its enabled also.
I cant trace any issue from my server file side.
Is it is SSL issue?
Thanks for contribution
Please check if you have any vendor selected already, on top left, right side of the admin logo, you should have All vendors ;)

Magento: Login to frontend with admin credentials

Is there any way provided by Magento to login to frontend with admin credentials. I
I've tried many tutorials and forums but in vain.
Is there any extension available for this? Can we achieve this by custom coding? If yes, How?
You could refer to this anser, about logging in as a frontend user (which creates a convenient shortcut to accomplish the same thing, for your client) : Magento, login as customer from admin
OR
You could use this FREE extension : http://www.magentocommerce.com/magento-connect/login-as-customer-9893.html
Description of what it does:
Features list:
Admin users can login as customers from "customer view" pages in admin
There is an option to allow login as a customer right on the "order view" pages in admin
There is an access control option. Admin can assign to a specific role whether role users can login as customers.
Does not require to setup customer universal password, because password is less secure.
Or, you could download it, look at the approach used in the code and adapt it :)

Single sign on for Joomla admin and frontend

Is it possible to implement single signon for Joomla 1.5 backend and frontend. I find it kind of redundant that when the admin for instance is logged in at the backend and needs to do some user function on the frontend has to login again. Is there a way of implementing a single signon?
Joomla! is implemented as two separate applications the front-end initiated from /index.php and the back-end administration from /administrator/index.php as such they have separate user sessions and states.
The separation is a standard security approach, while you could write your own mod_login to do this I wouldn't advise it unless you're very clear on what you're doing.
Having said that, there are 255 Joomla! extensions in the Access & Security ——> Site Access section dealing with logins. Have you tried looking there?
This joomla extension can do that.
http://www.everlive.net/joomla-extensions/15-joomla-admin-from-frontend.html
Just login to frontend as an admin user. You will be logged-in automatically to backend. Further it gives you useful direct links for various backend operations like article add, edit, publish, unpublish etc. Same kind of links are available for modules and menu items.

Resources