My project was built on PHP and has some pages on Angular JS. There are three types of accounts in system. Authorization system is based on PHP/Mysql.
For each account I have personal.html
template. When user is logged via account(1) I need to show him template /public/html/personal.html
from route, if account(2) - template /public/html/personal2.html
.etc. So, path /profile/personal/:type
is the same for each.
How I can manage this accounts pages with a good level of security?
I use routeProvider
:
$routeProvider
.when('/profile/personal/:type', {
templateUrl: '/public/html/personal.html',
controller: 'ProfileController'
})