akveo / ngx-admin-bundle-support

Support repository for ngx-admin backend bundles with issues tracking, instructions and code samples
58 stars 32 forks source link

getCurrentUser() at backend user.service issue #26

Open ghost opened 5 years ago

ghost commented 5 years ago

Hi. I bought and installed netcoreStarter bundle, logged in as admin and when self-editing my profile it didn't show the right information. After some debugging I got from Visual Studio Code the attached problems in getCurrentUser() I tried a couple of things but couldn't make it work. Would you help me on this issue? backend_common_userservice_issue

valentinkononov commented 5 years ago

Hi, thanks for this issue! I just tried this code and found it is working well, what is strange. I tried with .net core backend, as you mentioned. I think, probably, the issue which is shown by VS Code is something form static code analysis, but the code itself code work.

Could you tell me if you have errors in console and share a screenshot what's missing / not working in user profile exactly?

Thanks!

ghost commented 5 years ago

Hi, thanks for your answer. The console doesn't show any error but it always shows the same profile image and the form fields are all empty and you can't update the profile as userid is null. I wanted to keep moving so I changed the script to the attached one and I could start working as admin. Obviously it always brings the same data but it does update the database. I'm far from experienced in TS but I do believe the original script is getting an Observable. Hope it helps. Regards

El mar., 27 de ago. de 2019 03:59, Valentin Kononov < notifications@github.com> escribió:

Hi, thanks for this issue! I just tried this code and found it is working well, what is strange. I tried with .net core backend, as you mentioned. I think, probably, the issue which is shown by VS Code is something form static code analysis, but the code itself code work.

Could you tell me if you have errors in console and share a screenshot what's missing / not working in user profile exactly?

Thanks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/akveo/ngx-admin-bundle-support/issues/26?email_source=notifications&email_token=AE4MXKQXAZTD7BVYKMNOSH3QGTNFVA5CNFSM4IPIUZR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5G3SKQ#issuecomment-525187370, or mute the thread https://github.com/notifications/unsubscribe-auth/AE4MXKX5SA5B75SEA24NVZTQGTNFVANCNFSM4IPIUZRQ .

valentinkononov commented 5 years ago

if it works with Observable - that's ok, thanks for checking that.

ghost commented 5 years ago

Hi, thanks for your answer. It doesn't seem to be ok. Please refer to the attached screenshot. backend_common_userservice_issue_2

ghost commented 5 years ago

Sorry, I closed it by mistake

valentinkononov commented 5 years ago

yeah, thanks. I'm looking into it. can reproduce locally.