Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DDA
dda-wizard
Commits
cfffa7ac
Commit
cfffa7ac
authored
Aug 03, 2016
by
Gerrit Hübbers
🃏
Browse files
Add some comments for clarification.
parent
4dda963f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/scripts/components/auth/principal.service.js
View file @
cfffa7ac
...
...
@@ -58,7 +58,7 @@ angular.module('ddaApp')
// retrieve the identity data from the server, update the identity object, and then resolve.
Account
.
get
().
$promise
.
then
(
function
(
account
)
{
_identity
=
account
.
data
;
_identity
=
account
.
data
;
// a custom response interceptor in Account resource provides us with the full response object
_authenticated
=
true
;
deferred
.
resolve
(
_identity
);
})
...
...
src/main/webapp/scripts/components/auth/services/account.service.js
View file @
cfffa7ac
...
...
@@ -6,7 +6,9 @@ angular.module('ddaApp')
'
get
'
:
{
method
:
'
GET
'
,
params
:
{},
isArray
:
false
,
interceptor
:
{
response
:
function
(
response
)
{
// expose response
// expose response
//somehow jHipster wants to have access to the full response object instead of the default response.data. see Principal service identity() method
return
response
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment