1
0
mirror of https://github.com/bitwarden/web synced 2025-12-16 16:23:31 +00:00

organization pages and routing

This commit is contained in:
Kyle Spearrin
2017-03-03 21:53:02 -05:00
parent 4fdf2a98bf
commit 4d71a05d2a
13 changed files with 75 additions and 14 deletions

View File

@@ -86,6 +86,18 @@ angular
twoFactorEnabled: profile.TwoFactorEnabled,
culture: profile.Culture
};
if (profile.Organizations) {
var orgs = [];
for (var i = 0; i < profile.Organizations.length; i++) {
orgs.push({
id: profile.Organizations[i].Id,
name: profile.Organizations[i].Name
});
}
_userProfile.organizations = orgs;
}
}
_service.isAuthenticated = function () {